Skip to content
Myr

array-binary.test-d.ts

This file

Path

test-d/stdio/option/array-binary.test-d.ts

31 lines · 1.2 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 binaryArray = [new Uint8Array(), new Uint8Array()] as const;1213await execa('unicorns', {stdin: [binaryArray]});14execaSync('unicorns', {stdin: [binaryArray]});1516expectError(await execa('unicorns', {stdout: [binaryArray]}));17expectError(execaSync('unicorns', {stdout: [binaryArray]}));1819expectError(await execa('unicorns', {stderr: [binaryArray]}));20expectError(execaSync('unicorns', {stderr: [binaryArray]}));2122await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [binaryArray]]});23expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [binaryArray]]}));24await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [[binaryArray]]]});25expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [[binaryArray]]]}));2627expectAssignable<StdinOption>([binaryArray]);

Rename a few more types (#1012)ehmickybefore adoption55175e8

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

Split type files (#978)ehmickybefore adoption0bd0f0d

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

Rename a few more types (#1012)ehmickybefore adoption55175e8

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