瀏覽代碼

Fix a promise typing.

@ian-r-rose figured out this fix. This may be already in master and the commit could be removed.
Jason Grout 5 年之前
父節點
當前提交
ca4a22ec15
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/application/src/frontend.ts

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

@@ -41,7 +41,7 @@ export abstract class JupyterFrontEnd<
     super(options);
 
     // The default restored promise if one does not exist in the options.
-    const restored = new Promise(resolve => {
+    const restored = new Promise<void>(resolve => {
       requestAnimationFrame(() => {
         resolve();
       });