mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05:00
feat: Deprecate Deno.run API in favor of Deno.Command (#17630)
This commit is contained in:
parent
e215656865
commit
848e2c0d57
1 changed files with 14 additions and 3 deletions
17
cli/tsc/dts/lib.deno.ns.d.ts
vendored
17
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -3688,7 +3688,10 @@ declare namespace Deno {
|
|||
options?: { recursive: boolean },
|
||||
): FsWatcher;
|
||||
|
||||
/** Options which can be used with {@linkcode Deno.run}.
|
||||
/**
|
||||
* @deprecated Use {@linkcode Deno.Command} instead.
|
||||
*
|
||||
* Options which can be used with {@linkcode Deno.run}.
|
||||
*
|
||||
* @category Sub Process */
|
||||
export interface RunOptions {
|
||||
|
@ -3746,7 +3749,10 @@ declare namespace Deno {
|
|||
stdin?: "inherit" | "piped" | "null" | number;
|
||||
}
|
||||
|
||||
/** The status resolved from the `.status()` method of a
|
||||
/**
|
||||
* @deprecated Use {@linkcode Deno.Command} instead.
|
||||
*
|
||||
* The status resolved from the `.status()` method of a
|
||||
* {@linkcode Deno.Process} instance.
|
||||
*
|
||||
* If `success` is `true`, then `code` will be `0`, but if `success` is
|
||||
|
@ -3766,6 +3772,8 @@ declare namespace Deno {
|
|||
};
|
||||
|
||||
/**
|
||||
* * @deprecated Use {@linkcode Deno.Command} instead.
|
||||
*
|
||||
* Represents an instance of a sub process that is returned from
|
||||
* {@linkcode Deno.run} which can be used to manage the sub-process.
|
||||
*
|
||||
|
@ -3922,7 +3930,10 @@ declare namespace Deno {
|
|||
handler: () => void,
|
||||
): void;
|
||||
|
||||
/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
|
||||
/**
|
||||
* @deprecated Use {@linkcode Deno.Command} instead.
|
||||
*
|
||||
* Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
|
||||
* an array of program arguments, the first of which is the binary.
|
||||
*
|
||||
* ```ts
|
||||
|
|
Loading…
Reference in a new issue