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

Merge pull request #1420 from blink1073/ts-2.1

Declare types for constant exports
Afshin Darian преди 8 години
родител
ревизия
6b007f9026
променени са 4 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 1 1
      src/codeeditor/mimetype.ts
  2. 1 1
      src/codemirror/editor.ts
  3. 2 2
      src/csvwidget/table.ts
  4. 1 1
      src/notebook/notebook/widget.ts

+ 1 - 1
src/codeeditor/mimetype.ts

@@ -46,5 +46,5 @@ namespace IEditorMimeTypeService {
    * The default mime type.
    */
   export
-  const defaultMimeType = 'text/plain';
+  const defaultMimeType: string = 'text/plain';
 }

+ 1 - 1
src/codemirror/editor.ts

@@ -42,7 +42,7 @@ const EDITOR_CLASS = 'jp-CodeMirrorWidget';
  * The name of the default CodeMirror theme
  */
 export
-const DEFAULT_CODEMIRROR_THEME = 'jupyter';
+const DEFAULT_CODEMIRROR_THEME: string = 'jupyter';
 
 
 /**

+ 2 - 2
src/csvwidget/table.ts

@@ -24,12 +24,12 @@ import {
  * The hard limit on the number of rows to display.
  */
 export
-const DISPLAY_LIMIT = 1000;
+const DISPLAY_LIMIT: number = 1000;
 
 /**
  * The class name added to a csv table widget.
  */
-const CSV_TABLE_CLASS = 'jp-CSVTable';
+const CSV_TABLE_CLASS: string = 'jp-CSVTable';
 
 
 /**

+ 1 - 1
src/notebook/notebook/widget.ts

@@ -153,7 +153,7 @@ const FILLED_CIRCLE_CLASS = 'jp-filledCircle';
  * The mimetype used for Jupyter cell data.
  */
 export
-const JUPYTER_CELL_MIME = 'application/vnd.jupyter.cells';
+const JUPYTER_CELL_MIME: string = 'application/vnd.jupyter.cells';
 
 /**
  * The threshold in pixels to start a drag event.