diff --git a/types/slate-react/slate-react-tests.tsx b/types/slate-react/slate-react-tests.tsx index 64f1256668..76ecb5c579 100644 --- a/types/slate-react/slate-react-tests.tsx +++ b/types/slate-react/slate-react-tests.tsx @@ -19,8 +19,8 @@ class MyPlugin implements Plugin { } } } - onChange = (operations: Immutable.List, value: Value) => { - console.log(value); + onChange = (change: {operations: Immutable.List, value: Value}) => { + console.log(change.value); } } diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 0d6f2331e5..98c0758c21 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -265,7 +265,7 @@ editor .unwrapNodeByKey("a") .unwrapNodeByPath("a") .withoutMerging(() => { /* noop */ }) -.withoutNormalization(() => { /* noop */ }) +.withoutNormalizing(() => { /* noop */ }) .withoutSaving(() => { /* noop */ }) .wrapBlock("paragraph") .wrapBlockAtRange(range, "paragraph")