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 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 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 back28expectAssignable<StdinSyncOption>([objectArray]);Split type files (#978)ehmickybefore adoption0bd0f0d
lines 29–30why, one step back2930expectNotAssignable<StdoutStderrOption>([objectArray]);Rename a few more types (#1012)ehmickybefore adoption55175e8
line 31why, one step back31expectNotAssignable<StdoutStderrSyncOption>([objectArray]);