Skip to content
Myr

Fix type of `result.stdio[number]` (#683)

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

authored by ehmicky · committed by GitHub · parent b858c07 · Browse files · 2 files+7 added−1 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+7 added−1 removed

  • other:+7 added−1 removed

2 files+7 added−1 removed

modified:index.d.ts+6 added-1 removed
148 unmodified lines
149150type MapStdioOptions<151 StdioOptionsArrayType extends StdioOptionsArray,152 OptionsType extends Options = Options,153> = {[StreamIndex in keyof StdioOptionsArrayType & string]: StdioOutput<StreamIndex, OptionsType>};153> = {154 [StreamIndex in keyof StdioOptionsArrayType]: StdioOutput<155 StreamIndex extends string ? StreamIndex : string,156 OptionsType157 >158};159160export type Options<IsSync extends boolean = boolean> = {161 /**162 Prefer locally installed binaries when looking for a binary to execute.
988 unmodified lines
modified:index.test-d.ts+1 added
76 unmodified lines
77 expectType<string>(unicornsResult.stdio[1]);78 expectType<string>(unicornsResult.stderr);79 expectType<string>(unicornsResult.stdio[2]);80 expectType<string | undefined>(unicornsResult.all);81 expectType<string | undefined>(unicornsResult.stdio[3 as number]);8283 const bufferResult = await execaBufferPromise;84 expectType<Uint8Array>(bufferResult.stdout);85 expectType<Uint8Array>(bufferResult.stdio[1]);
935 unmodified lines