Skip to content

Commit cd817aa

Browse files
committed
Fix typing of tet opertion
1 parent abd59ed commit cd817aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/app/src/app/overmind/effects/vscode/ModelsHandler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { hasPermission } from '@codesandbox/common/lib/utils/permission';
1111
import { indexToLineAndColumn } from 'app/overmind/utils/common';
1212
import { actions, dispatch } from 'codesandbox-api';
1313
import { css } from 'glamor';
14-
import { TextOperation } from 'ot';
14+
import { TextOperation, SerializedTextOperation } from 'ot';
1515

1616
import { getCurrentModelPath } from './utils';
1717

@@ -257,7 +257,10 @@ export class ModelsHandler {
257257
);
258258
}
259259

260-
public async applyOperation(moduleShortid: string, operation: TextOperation) {
260+
public async applyOperation(
261+
moduleShortid: string,
262+
operation: SerializedTextOperation
263+
) {
261264
const module = this.sandbox.modules.find(m => m.shortid === moduleShortid);
262265

263266
if (!module) {

0 commit comments

Comments
 (0)