Procházet zdrojové kódy

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 před 5 roky
rodič
revize
ca4a22ec15
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();
       });