Browse Source

Update JupyterFrontEnd and JupyterLab generic arguments.

Afshin Darian 6 years ago
parent
commit
f57374b78c
2 changed files with 4 additions and 4 deletions
  1. 1 1
      packages/application/src/frontend.ts
  2. 3 3
      packages/application/src/lab.ts

+ 1 - 1
packages/application/src/frontend.ts

@@ -23,7 +23,7 @@ import { Widget } from '@phosphor/widgets';
  * The generic `T` argument indicates the type that the plugin `provides` upon
  * being activated.
  */
-export type JupyterFrontEndPlugin<T> = IPlugin<JupyterFrontEnd, T>;
+export type JupyterFrontEndPlugin<T> = IPlugin<JupyterFrontEnd<any, any>, T>;
 
 /**
  * The base Jupyter front-end application class.

+ 3 - 3
packages/application/src/lab.ts

@@ -38,12 +38,12 @@ export interface ILabStatus {
   /**
    * A signal for when application changes its busy status.
    */
-  readonly busySignal: ISignal<JupyterFrontEnd, boolean>;
+  readonly busySignal: ISignal<JupyterFrontEnd<any, any>, boolean>;
 
   /**
-   *  signal for when application changes its dirty status.
+   * A signal for when application changes its dirty status.
    */
-  readonly dirtySignal: ISignal<JupyterFrontEnd, boolean>;
+  readonly dirtySignal: ISignal<JupyterFrontEnd<any, any>, boolean>;
 
   /**
    * Whether the application is busy.