Brian E. Granger пре 4 година
родитељ
комит
adbee3e772
2 измењених фајлова са 23 додато и 0 уклоњено
  1. 2 0
      packages/application/src/index.ts
  2. 21 0
      packages/application/src/treepathupdater.ts

+ 2 - 0
packages/application/src/index.ts

@@ -17,4 +17,6 @@ export { ILabShell, LabShell } from './shell';
 
 export { ILabStatus } from './status';
 
+export { ITreePathUpdater } from './treepathupdater';
+
 export * from './tokens';

+ 21 - 0
packages/application/src/treepathupdater.ts

@@ -0,0 +1,21 @@
+/* -----------------------------------------------------------------------------
+| Copyright (c) Jupyter Development Team.
+| Distributed under the terms of the Modified BSD License.
+|----------------------------------------------------------------------------*/
+
+import { Token } from '@lumino/coreutils';
+
+/**
+ * The tree path updater token.
+ */
+export const ITreePathUpdater = new Token<ITreePathUpdater>(
+  '@jupyterlab/application:ITreePathUpdater'
+);
+
+/**
+ * A function to call to update the tree path.
+ */
+export interface ITreePathUpdater {
+
+    (treePath: string): void;
+}