diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2022-05-31 01:44:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 19:44:16 -0400 |
commit | d9ed5e905c25bd415b5e65649a44e0a1580e5ed1 (patch) | |
tree | b736bd9a37ca7919f509167949c23c02a697d008 /cli/dts/lib.deno.ns.d.ts | |
parent | f0dd751190b3859033a97a3ce3c44ed02aa0da0a (diff) |
chore(docs): use cross-platform example in `Deno.run` jsdoc (#14754)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index ff1636d4d..660ff22b4 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2429,13 +2429,14 @@ declare namespace Deno { stdin?: "inherit" | "piped" | "null" | number; } - /** 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. * * ```ts * const p = Deno.run({ - * cmd: ["echo", "hello"], + * cmd: ["curl", "https://example.com"], * }); + * const status = await p.status(); * ``` * * Subprocess uses same working directory as parent process unless `opt.cwd` |