Переглянути джерело

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();
       });