array-string.test-d.ts
This file
Path
test-d/stdio/option/array-string.test-d.ts
31 lines · 1.1 KiB · TypeScript
Last changed by
Rename a few more types (#1012)ehmickybefore adoption55175e8
History of this fileTake it
Split type files (#978)ehmickybefore adoption0bd0f0d
lines 1–5why, one step back1import {expectError, expectAssignable, expectNotAssignable} from 'tsd';2import {3 execa,4 execaSync,5 type StdinOption,Rename a few more types (#1012)ehmickybefore adoption55175e8
line 6why, one step back6 type StdinSyncOption,Split type files (#978)ehmickybefore adoption0bd0f0d
line 7why, one step back7 type StdoutStderrOption,Rename a few more types (#1012)ehmickybefore adoption55175e8
line 8why, one step back8 type StdoutStderrSyncOption,Split type files (#978)ehmickybefore adoption0bd0f0d
lines 9–27why, one step back9} from '../../../index.js';1011const stringArray = ['foo', 'bar'] as const;1213await execa('unicorns', {stdin: [stringArray]});14execaSync('unicorns', {stdin: [stringArray]});1516expectError(await execa('unicorns', {stdout: [stringArray]}));17expectError(execaSync('unicorns', {stdout: [stringArray]}));1819expectError(await execa('unicorns', {stderr: [stringArray]}));20expectError(execaSync('unicorns', {stderr: [stringArray]}));2122await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [stringArray]]});23expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [stringArray]]}));24await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [[stringArray]]]});25expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [[stringArray]]]}));2627expectAssignable<StdinOption>([stringArray]);Rename a few more types (#1012)ehmickybefore adoption55175e8
line 28why, one step back28expectAssignable<StdinSyncOption>([stringArray]);Split type files (#978)ehmickybefore adoption0bd0f0d
lines 29–30why, one step back2930expectNotAssignable<StdoutStderrOption>([stringArray]);Rename a few more types (#1012)ehmickybefore adoption55175e8
line 31why, one step back31expectNotAssignable<StdoutStderrSyncOption>([stringArray]);