浏览代码

fix interface of runMode

Steven Silvester 8 年之前
父节点
当前提交
f2ec06d77c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/codemirror/src/mode.ts

+ 1 - 1
packages/codemirror/src/mode.ts

@@ -25,7 +25,7 @@ declare var require: any;
  * Running a CodeMirror mode outside of an editor.
  */
 export
-function runMode(code: string, mode: modespec | string, el: HTMLElement): void {
+function runMode(code: string, mode: string, el: HTMLElement): void {
   CodeMirror.runMode(code, mode, el);
 }