浏览代码

Add docstring.

Ian Rose 6 年之前
父节点
当前提交
8a86ca9c14
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      packages/application/src/tokens.ts

+ 8 - 0
packages/application/src/tokens.ts

@@ -19,6 +19,14 @@ export const IConnectionLost = new Token<IConnectionLost>(
   '@jupyterlab/apputils:IConnectionLost'
 );
 
+/**
+ * A function that handles a connection to the server being lost.
+ *
+ * #### Notes
+ * The default implementation shows a simple dialog upon connection
+ * failures, but it may be overridden by extensions to perform other
+ * actions.
+ */
 export type IConnectionLost = (
   manager: ServiceManager.IManager,
   err: ServerConnection.NetworkError