File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/app/src/app/overmind/effects/vscode Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { hasPermission } from '@codesandbox/common/lib/utils/permission';
11
11
import { indexToLineAndColumn } from 'app/overmind/utils/common' ;
12
12
import { actions , dispatch } from 'codesandbox-api' ;
13
13
import { css } from 'glamor' ;
14
- import { TextOperation } from 'ot' ;
14
+ import { TextOperation , SerializedTextOperation } from 'ot' ;
15
15
16
16
import { getCurrentModelPath } from './utils' ;
17
17
@@ -257,7 +257,10 @@ export class ModelsHandler {
257
257
) ;
258
258
}
259
259
260
- public async applyOperation ( moduleShortid : string , operation : TextOperation ) {
260
+ public async applyOperation (
261
+ moduleShortid : string ,
262
+ operation : SerializedTextOperation
263
+ ) {
261
264
const module = this . sandbox . modules . find ( m => m . shortid === moduleShortid ) ;
262
265
263
266
if ( ! module ) {
You can’t perform that action at this time.
0 commit comments