瀏覽代碼

More documentation

Afshin Darian 6 年之前
父節點
當前提交
fa4ec4f8a8
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      packages/application/src/frontend.ts

+ 5 - 3
packages/application/src/frontend.ts

@@ -37,14 +37,16 @@ export type JupyterFrontEndPlugin<T> = IPlugin<JupyterFrontEnd, T>;
  * `T extends JupyterFrontEnd.Shell = JupyterFrontEnd.Shell` - the type of the
  * `shell` attribute of a `JupyterFrontEnd`.
  *
- * `U = any` - the type that the front-end application's `restored` promise
+ * `U = void` - the type that the front-end application's `restored` promise
  * will resolve with. If a `restored` promise is not defined by a subclass, it
  * will default to a promise that waits until the underlying phosphor
- * `Application` has `started` and subsequently resolves with `undefined`.
+ * `Application` has `started` and subsequently resolves with `undefined`. One
+ * possible candidate for this type is the restored layout description of the
+ * shell; but subclasses can resolve with any type upon restoration.
  */
 export class JupyterFrontEnd<
   T extends JupyterFrontEnd.Shell = JupyterFrontEnd.Shell,
-  U = any
+  U = void
 > extends Application<T> {
   /**
    * Construct a new JupyterFrontEnd object.