File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import CodeMirror from 'codemirror' ;
2
+ import CodeMirror , { Position } from 'codemirror' ;
3
3
4
4
export type DOMEvent = 'onMouseDown' | 'onDblClick' | 'onTouchStart' | 'onContextMenu' | 'onKeyDown' | 'onKeyPress'
5
5
| 'onKeyUp' | 'onCut' | 'onCopy' | 'onPaste' | 'onDragStart' | 'onDragEnter' | 'onDragOver' | 'onDragLeave' | 'onDrop' ;
@@ -59,7 +59,7 @@ export interface IReactCodemirror extends IDOMEvent {
59
59
onBeforeSelectionChange ?: ( instance : CodeMirror . Editor , selection : { head : Position ; anchor : Position ; } ) => void ;
60
60
/**
61
61
* Fires whenever the view port of the editor changes (due to scrolling, editing, or any other factor).
62
- * The from and to arguments give the new start and end of the viewport.
62
+ * The from and to arguments give the new start and end of the viewport.
63
63
*/
64
64
onViewportChange ?: ( instance : CodeMirror . Editor , from : number , to : number ) => void ;
65
65
/** Fires when the editor gutter (the line-number area) is clicked. Will pass the editor instance as first argument,
You can’t perform that action at this time.
0 commit comments