Преглед изворни кода

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