diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2020-02-07 15:53:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 01:53:15 -0500 |
commit | 5a8ba3b114bbacf10f03abc0335a753585861c97 (patch) | |
tree | 8bd6d55736fd08d958ed81f447fcf87b33a76d32 /cli/js/lib.deno.ns.d.ts | |
parent | d9c84eb91eecdf1225091e4d2bea8e4c6a076504 (diff) |
feat: add std/signal/mod.ts (#3913)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 0f6ea2221..6d06a8cd6 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -2146,14 +2146,15 @@ declare namespace Deno { * SignalStream represents the stream of signals, implements both * AsyncIterator and PromiseLike */ - export class SignalStream implements AsyncIterator<void>, PromiseLike<void> { + export class SignalStream + implements AsyncIterableIterator<void>, PromiseLike<void> { constructor(signal: typeof Deno.Signal); then<T, S>( f: (v: void) => T | Promise<T>, g?: (v: void) => S | Promise<S> ): Promise<T | S>; next(): Promise<IteratorResult<void>>; - [Symbol.asyncIterator](): AsyncIterator<void>; + [Symbol.asyncIterator](): AsyncIterableIterator<void>; dispose(): void; } |