summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorGeert-Jan Zwiers <34610306+GJZwiers@users.noreply.github.com>2022-02-22 20:41:59 +0100
committerGitHub <noreply@github.com>2022-02-22 20:41:59 +0100
commit6613a312b160374ba7a86c3b88fb67c0fe4247e0 (patch)
tree6ee0ccf2a24f705fc37543e80d06400704fe8627 /cli/dts/lib.deno.ns.d.ts
parent877c0b724e57211c63505d932ebf6f1051a9c2f1 (diff)
docs: code example to `structuredClone`, `CompressionStream`, `DecompressionStream` (#13719)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index d759bdd58..14cf2a316 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -2910,11 +2910,13 @@ declare namespace Deno {
* If `pid` is negative, the signal will be sent to the process group
* identified by `pid`.
*
- * const p = Deno.run({
- * cmd: ["sleep", "10000"]
- * });
+ * ```ts
+ * const p = Deno.run({
+ * cmd: ["sleep", "10000"]
+ * });
*
- * Deno.kill(p.pid, "SIGINT");
+ * Deno.kill(p.pid, "SIGINT");
+ * ```
*
* Requires `allow-run` permission. */
export function kill(pid: number, signo: Signal): void;