Explorar el Código

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 hace 5 años
padre
commit
ca4a22ec15
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
       });