0
0
Fork 0
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:
Yusuke Tanaka 2023-11-25 13:26:24 +09:00 committed by GitHub
parent 89424f8e4a
commit 00e4c47890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>;
}
/**