浏览代码

Add JupyterLabPlugin type and some docs.

Afshin Darian 8 年之前
父节点
当前提交
a9ac439c6a
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/application/index.ts

+ 11 - 0
src/application/index.ts

@@ -9,6 +9,17 @@ import {
   ApplicationShell
 } from './shell';
 
+
+/**
+ * The type for all JupyterLab plugins.
+ */
+export
+type JupyterLabPlugin<T> = Application.IPlugin<JupyterLab, T>;
+
+
+/**
+ * JupyterLab is the main application class. It is instantiated once and shared.
+ */
 export
 class JupyterLab extends Application<ApplicationShell> {
   /**