Skip to content
Myr

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 file

Take it

Split type files (#978)ehmickybefore adoption0bd0f0d

lines 1–5why, one step back
1import {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 back
6 type StdinSyncOption,

Split type files (#978)ehmickybefore adoption0bd0f0d

line 7why, one step back
7 type StdoutStderrOption,

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 8why, one step back
8 type StdoutStderrSyncOption,

Split type files (#978)ehmickybefore adoption0bd0f0d

lines 9–27why, one step back
9} 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 back
28expectAssignable<StdinSyncOption>([stringArray]);

Split type files (#978)ehmickybefore adoption0bd0f0d

lines 29–30why, one step back
29
30expectNotAssignable<StdoutStderrOption>([stringArray]);

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 31why, one step back
31expectNotAssignable<StdoutStderrSyncOption>([stringArray]);