feat: make Child.kill argument optional (#14669)

This commit is contained in:
Leo Kettmeir 2022-05-19 14:05:57 +02:00 committed by GitHub
parent 4e1ca1d178
commit 5ffcbcfcc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View file

@ -1060,8 +1060,8 @@ declare namespace Deno {
/** Waits for the child to exit completely, returning all its output and status. */
output(): Promise<SpawnOutput<T>>;
/** Kills the process with given Signal. */
kill(signo: Signal): void;
/** Kills the process with given Signal. Defaults to SIGTERM. */
kill(signo?: Signal): void;
}
/**