Skip to content
Myr

array-object.test-d.ts

This file

Path

test-d/stdio/option/array-object.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 objectArray = [{}, {}] as const;1213await execa('unicorns', {stdin: [objectArray]});14execaSync('unicorns', {stdin: [objectArray]});1516expectError(await execa('unicorns', {stdout: [objectArray]}));17expectError(execaSync('unicorns', {stdout: [objectArray]}));1819expectError(await execa('unicorns', {stderr: [objectArray]}));20expectError(execaSync('unicorns', {stderr: [objectArray]}));2122await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [objectArray]]});23expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [objectArray]]}));24await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [[objectArray]]]});25expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [[objectArray]]]}));2627expectAssignable<StdinOption>([objectArray]);

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 28why, one step back
28expectAssignable<StdinSyncOption>([objectArray]);

Split type files (#978)ehmickybefore adoption0bd0f0d

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

Rename a few more types (#1012)ehmickybefore adoption55175e8

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