diff --git a/types/node/index.d.ts b/types/node/index.d.ts index b545ec718e..9ba96612dc 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2101,7 +2101,7 @@ declare module "child_process" { windowsHide?: boolean; } - export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess; + export function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptions): ChildProcess; export interface ExecOptions { cwd?: string; diff --git a/types/node/v0/index.d.ts b/types/node/v0/index.d.ts index ef1c485d2d..37f92cbc50 100644 --- a/types/node/v0/index.d.ts +++ b/types/node/v0/index.d.ts @@ -881,7 +881,7 @@ declare module "child_process" { unref(): void; } - export function spawn(command: string, args?: string[], options?: { + export function spawn(command: string, args?: ReadonlyArray, options?: { cwd?: string; stdio?: any; custom?: any; diff --git a/types/node/v4/index.d.ts b/types/node/v4/index.d.ts index 3a7825dff8..db5518575d 100644 --- a/types/node/v4/index.d.ts +++ b/types/node/v4/index.d.ts @@ -1240,7 +1240,7 @@ declare module "child_process" { gid?: number; shell?: boolean | string; } - export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess; + export function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptions): ChildProcess; export interface ExecOptions { cwd?: string; diff --git a/types/node/v6/index.d.ts b/types/node/v6/index.d.ts index e615662fe6..9859d0ba09 100644 --- a/types/node/v6/index.d.ts +++ b/types/node/v6/index.d.ts @@ -1787,7 +1787,7 @@ declare module "child_process" { gid?: number; shell?: boolean | string; } - export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess; + export function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptions): ChildProcess; export interface ExecOptions { cwd?: string; diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index 366eb247fd..7d2d34cd8b 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -1847,7 +1847,7 @@ declare module "child_process" { gid?: number; shell?: boolean | string; } - export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess; + export function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptions): ChildProcess; export interface ExecOptions { cwd?: string; diff --git a/types/node/v8/index.d.ts b/types/node/v8/index.d.ts index 05d617dd58..647d479683 100644 --- a/types/node/v8/index.d.ts +++ b/types/node/v8/index.d.ts @@ -2091,7 +2091,7 @@ declare module "child_process" { windowsHide?: boolean; } - export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess; + export function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptions): ChildProcess; export interface ExecOptions { cwd?: string; diff --git a/types/node/v9/index.d.ts b/types/node/v9/index.d.ts index 5012d70183..d739a5c523 100644 --- a/types/node/v9/index.d.ts +++ b/types/node/v9/index.d.ts @@ -2091,7 +2091,7 @@ declare module "child_process" { windowsHide?: boolean; } - export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess; + export function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptions): ChildProcess; export interface ExecOptions { cwd?: string;