Skip to content
Myr

Fix incorrect `execaNode` signature in `index.d.ts` (#506)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Emily Marigold Klassen · committed by GitHub · parent e331353 · Browse files · 2 files+12 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+12 added−3 removed

  • other:+12 added−3 removed

2 files+12 added−3 removed

modified:index.d.ts+3 added-3 removed
573 unmodified lines
574): ExecaChildProcess;575export function execaNode(576 scriptPath: string,577 arguments?: readonly string[],578 options?: Options<null>578 options?: NodeOptions<null>579): ExecaChildProcess<Buffer>;580export function execaNode(scriptPath: string, options?: Options): ExecaChildProcess;581export function execaNode(scriptPath: string, options?: Options<null>): ExecaChildProcess<Buffer>;580export function execaNode(scriptPath: string, options?: NodeOptions): ExecaChildProcess;581export function execaNode(scriptPath: string, options?: NodeOptions<null>): ExecaChildProcess<Buffer>;
modified:index.test-d.ts+9 added
208 unmodified lines
209);210expectType<ExecaReturnValue<Buffer>>(211 await execaNode('unicorns', ['foo'], {encoding: null}),212);213214expectType<ExecaChildProcess>(execaNode('unicorns', {nodeOptions: ['--async-stack-traces']}));215expectType<ExecaChildProcess>(execaNode('unicorns', ['foo'], {nodeOptions: ['--async-stack-traces']}));216expectType<ExecaChildProcess<Buffer>>(217 execaNode('unicorns', {nodeOptions: ['--async-stack-traces'], encoding: null}),218);219expectType<ExecaChildProcess<Buffer>>(220 execaNode('unicorns', ['foo'], {nodeOptions: ['--async-stack-traces'], encoding: null}),221);