Преглед на файлове

Fix codemirror typings for editor test.

Jason Grout преди 6 години
родител
ревизия
ea774b33a7
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      packages/codemirror/typings/codemirror/codemirror.d.ts

+ 4 - 0
packages/codemirror/typings/codemirror/codemirror.d.ts

@@ -59,6 +59,10 @@ declare module 'codemirror' {
       pos: { from: CodeMirror.Position; to: CodeMirror.Position },
       margin?: number
     ): void;
+
+    /** Trigger key events onto the editor instance. Not for production use, only for testing.
+     See this comment: https://github.com/codemirror/CodeMirror/issues/1935#issuecomment-28178991 */
+     triggerOnKeyDown(event: Event): void;
   }
 
   interface Selection {