mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
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.
This commit is contained in:
parent
89424f8e4a
commit
00e4c47890
1 changed files with 2 additions and 2 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue