diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2023-11-25 13:26:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 13:26:24 +0900 |
commit | 00e4c47890e9b5d95557b06f2048d14a79de8401 (patch) | |
tree | 9420e2909355950aec3cbe83e3b7f344b2365667 /cli/tsc/dts/lib.deno.ns.d.ts | |
parent | 89424f8e4a339d42f17e772f5f65fc89e024a8ca (diff) |
fix(dts): `Deno.ChildProcess` actually implements `AsyncDisposable` (#21326)
What `Deno.ChildProcess` actually implements is `AsyncDisposable`, but the type
declaration says it's `Disposable`. This PR fixes the type declaration to match
the actual implementation.
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 132d58e17..ed24736fc 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -4312,7 +4312,7 @@ declare namespace Deno { * * @category Sub Process */ - export class ChildProcess implements Disposable { + export class ChildProcess implements AsyncDisposable { get stdin(): WritableStream<Uint8Array>; get stdout(): ReadableStream<Uint8Array>; get stderr(): ReadableStream<Uint8Array>; @@ -4338,7 +4338,7 @@ declare namespace Deno { * process from exiting. */ unref(): void; - [Symbol.dispose](): void; + [Symbol.asyncDispose](): Promise<void>; } /** |