From 4691bde42935582a217ce1453d4c8a495ed4af86 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 25 Mar 2022 08:17:13 -0400 Subject: fix: `Deno.run` - do not modify user provided `cmd` array (#14109) --- cli/dts/lib.deno.ns.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 02f514673..d55ac231e 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2398,7 +2398,7 @@ declare namespace Deno { export interface RunOptions { /** Arguments to pass. Note, the first element needs to be a path to the * binary */ - cmd: string[] | [URL, ...string[]]; + cmd: readonly string[] | [URL, ...string[]]; cwd?: string; env?: { [key: string]: string; -- cgit v1.2.3