Skip to content
Myr

uint-array.test-d.ts

This file

Path

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

42 lines · 1.8 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–34why, one step back
9} from '../../../index.js';
1011await execa('unicorns', {stdin: new Uint8Array()});12execaSync('unicorns', {stdin: new Uint8Array()});13await execa('unicorns', {stdin: [new Uint8Array()]});14execaSync('unicorns', {stdin: [new Uint8Array()]});1516expectError(await execa('unicorns', {stdout: new Uint8Array()}));17expectError(execaSync('unicorns', {stdout: new Uint8Array()}));18expectError(await execa('unicorns', {stdout: [new Uint8Array()]}));19expectError(execaSync('unicorns', {stdout: [new Uint8Array()]}));2021expectError(await execa('unicorns', {stderr: new Uint8Array()}));22expectError(execaSync('unicorns', {stderr: new Uint8Array()}));23expectError(await execa('unicorns', {stderr: [new Uint8Array()]}));24expectError(execaSync('unicorns', {stderr: [new Uint8Array()]}));2526expectError(await execa('unicorns', {stdio: new Uint8Array()}));27expectError(execaSync('unicorns', {stdio: new Uint8Array()}));2829await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', new Uint8Array()]});30expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', new Uint8Array()]}));31await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [new Uint8Array()]]});32expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', [new Uint8Array()]]}));3334expectAssignable<StdinOption>(new Uint8Array());

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 35why, one step back
35expectAssignable<StdinSyncOption>(new Uint8Array());

Split type files (#978)ehmickybefore adoption0bd0f0d

line 36why, one step back
36expectAssignable<StdinOption>([new Uint8Array()]);

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 37why, one step back
37expectAssignable<StdinSyncOption>([new Uint8Array()]);

Split type files (#978)ehmickybefore adoption0bd0f0d

lines 38–39why, one step back
38
39expectNotAssignable<StdoutStderrOption>(new Uint8Array());

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 40why, one step back
40expectNotAssignable<StdoutStderrSyncOption>(new Uint8Array());

Split type files (#978)ehmickybefore adoption0bd0f0d

line 41why, one step back
41expectNotAssignable<StdoutStderrOption>([new Uint8Array()]);

Rename a few more types (#1012)ehmickybefore adoption55175e8

line 42why, one step back
42expectNotAssignable<StdoutStderrSyncOption>([new Uint8Array()]);