mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
chore: define removal version for Deno.run()
(#21863)
This change sets the removal for `Deno.run()` in v2.
This commit is contained in:
parent
a25055356c
commit
658b559657
1 changed files with 12 additions and 8 deletions
20
cli/tsc/dts/lib.deno.ns.d.ts
vendored
20
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -3933,10 +3933,11 @@ declare namespace Deno {
|
||||||
): FsWatcher;
|
): FsWatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@linkcode Deno.Command} instead.
|
|
||||||
*
|
|
||||||
* Options which can be used with {@linkcode Deno.run}.
|
* Options which can be used with {@linkcode Deno.run}.
|
||||||
*
|
*
|
||||||
|
* @deprecated Use {@linkcode Deno.Command} instead. {@linkcode Deno.run}
|
||||||
|
* will be removed in v2.0.0.
|
||||||
|
*
|
||||||
* @category Sub Process */
|
* @category Sub Process */
|
||||||
export interface RunOptions {
|
export interface RunOptions {
|
||||||
/** Arguments to pass.
|
/** Arguments to pass.
|
||||||
|
@ -3994,14 +3995,15 @@ declare namespace Deno {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@linkcode Deno.Command} instead.
|
|
||||||
*
|
|
||||||
* The status resolved from the `.status()` method of a
|
* The status resolved from the `.status()` method of a
|
||||||
* {@linkcode Deno.Process} instance.
|
* {@linkcode Deno.Process} instance.
|
||||||
*
|
*
|
||||||
* If `success` is `true`, then `code` will be `0`, but if `success` is
|
* If `success` is `true`, then `code` will be `0`, but if `success` is
|
||||||
* `false`, the sub-process exit code will be set in `code`.
|
* `false`, the sub-process exit code will be set in `code`.
|
||||||
*
|
*
|
||||||
|
* @deprecated Use {@linkcode Deno.Command} instead. {@linkcode Deno.run}
|
||||||
|
* will be removed in v2.0.0.
|
||||||
|
*
|
||||||
* @category Sub Process */
|
* @category Sub Process */
|
||||||
export type ProcessStatus =
|
export type ProcessStatus =
|
||||||
| {
|
| {
|
||||||
|
@ -4016,11 +4018,12 @@ declare namespace Deno {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* * @deprecated Use {@linkcode Deno.Command} instead.
|
|
||||||
*
|
|
||||||
* Represents an instance of a sub process that is returned from
|
* Represents an instance of a sub process that is returned from
|
||||||
* {@linkcode Deno.run} which can be used to manage the sub-process.
|
* {@linkcode Deno.run} which can be used to manage the sub-process.
|
||||||
*
|
*
|
||||||
|
* @deprecated Use {@linkcode Deno.Command} instead. {@linkcode Deno.run}
|
||||||
|
* will be removed in v2.0.0.
|
||||||
|
*
|
||||||
* @category Sub Process */
|
* @category Sub Process */
|
||||||
export class Process<T extends RunOptions = RunOptions> {
|
export class Process<T extends RunOptions = RunOptions> {
|
||||||
/** The resource ID of the sub-process. */
|
/** The resource ID of the sub-process. */
|
||||||
|
@ -4175,8 +4178,6 @@ declare namespace Deno {
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@linkcode Deno.Command} instead.
|
|
||||||
*
|
|
||||||
* Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
|
* Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
|
||||||
* an array of program arguments, the first of which is the binary.
|
* an array of program arguments, the first of which is the binary.
|
||||||
*
|
*
|
||||||
|
@ -4222,6 +4223,9 @@ declare namespace Deno {
|
||||||
*
|
*
|
||||||
* Requires `allow-run` permission.
|
* Requires `allow-run` permission.
|
||||||
*
|
*
|
||||||
|
* @deprecated Use {@linkcode Deno.Command} instead. {@linkcode Deno.run}
|
||||||
|
* will be removed in v2.0.0.
|
||||||
|
*
|
||||||
* @tags allow-run
|
* @tags allow-run
|
||||||
* @category Sub Process
|
* @category Sub Process
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue