Browse Source

Merge pull request #8032 from jasongrout/futuredone

Make IFuture done typings more correct
Jason Grout 5 years ago
parent
commit
a29398a1af
1 changed files with 2 additions and 3 deletions
  1. 2 3
      packages/services/src/kernel/kernel.ts

+ 2 - 3
packages/services/src/kernel/kernel.ts

@@ -685,10 +685,9 @@ export interface IFuture<
    * The future is done when there are no more responses expected from the
    * kernel.
    *
-   * The `done` promise resolves to the reply message if there is one,
-   * otherwise it resolves to `undefined`.
+   * The `done` promise resolves to the reply message.
    */
-  readonly done: Promise<REPLY | undefined>;
+  readonly done: Promise<REPLY>;
 
   /**
    * The reply handler for the kernel future.