Pārlūkot izejas kodu

Separate out the typedoc-specific typings.

Jason Grout 8 gadi atpakaļ
vecāks
revīzija
798d09f5b9
3 mainītis faili ar 17 papildinājumiem un 11 dzēšanām
  1. 2 1
      src/tsconfig.json
  2. 12 0
      src/typedoc.d.ts
  3. 3 10
      src/typings.d.ts

+ 2 - 1
src/tsconfig.json

@@ -10,5 +10,6 @@
     "target": "ES5",
     "outDir": "../lib",
     "sourceMap": true
-  }
+  },
+  "exclude": ["typedoc.d.ts"]
 }

+ 12 - 0
src/typedoc.d.ts

@@ -0,0 +1,12 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+/*
+ * TODO: remove this file and the excludes entry in tsconfig.json
+ * after typedoc understands the lib compiler option and @types packages.
+ */
+/// <reference path="../node_modules/@types/mathjax/index.d.ts"/>
+/// <reference path="../node_modules/typescript/lib/lib.es2015.promise.d.ts"/>
+/// <reference path="../node_modules/typescript/lib/lib.dom.d.ts"/>
+/// <reference path="../node_modules/typescript/lib/lib.es5.d.ts"/>
+/// <reference path="../node_modules/typescript/lib/lib.es2015.collection.d.ts"/>

+ 3 - 10
src/typings.d.ts

@@ -1,13 +1,6 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
 /// <reference path="../typings/ansi_up/ansi_up.d.ts"/>
 /// <reference path="../typings/codemirror/codemirror.d.ts"/>
 /// <reference path="../typings/xterm/xterm.d.ts"/>
-
-/*
- * TODO: remove the below typings after typedoc understands the lib compiler option
- * and the @types typing resolution.
- */
-/// <reference path="../node_modules/@types/mathjax/index.d.ts"/>
-/// <reference path="../node_modules/typescript/lib/lib.es2015.promise.d.ts"/>
-/// <reference path="../node_modules/typescript/lib/lib.dom.d.ts"/>
-/// <reference path="../node_modules/typescript/lib/lib.es5.d.ts"/>
-/// <reference path="../node_modules/typescript/lib/lib.es2015.collection.d.ts"/>