Skip to content

Commit ee66177

Browse files
wdolekjaywcjlove
authored andcommitted
#92 Fix type definition of onChange
1 parent 3edfc0e commit ee66177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface IReactCodemirror extends IDOMEvent {
3232
* changeObj has a similar type as the object passed to the editor's "change" event,
3333
* but it never has a next property, because document change events are not batched (whereas editor change events are).
3434
*/
35-
onChange?: (instance: CodeMirror.Editor, change: CodeMirror.EditorChangeLinkedList[]) => void;
35+
onChange?: (instance: CodeMirror.Editor, change: CodeMirror.EditorChangeLinkedList) => void;
3636
/**
3737
* Like the "change" event, but batched per operation, passing an
3838
* array containing all the changes that happened in the operation.

0 commit comments

Comments
 (0)