We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onChange
1 parent 3edfc0e commit ee66177Copy full SHA for ee66177
typings/index.d.ts
@@ -32,7 +32,7 @@ export interface IReactCodemirror extends IDOMEvent {
32
* changeObj has a similar type as the object passed to the editor's "change" event,
33
* but it never has a next property, because document change events are not batched (whereas editor change events are).
34
*/
35
- onChange?: (instance: CodeMirror.Editor, change: CodeMirror.EditorChangeLinkedList[]) => void;
+ onChange?: (instance: CodeMirror.Editor, change: CodeMirror.EditorChangeLinkedList) => void;
36
/**
37
* Like the "change" event, but batched per operation, passing an
38
* array containing all the changes that happened in the operation.
0 commit comments