DefinitelyTyped/types/concurrently/concurrently-tests.ts
2019-09-25 11:21:28 -07:00

21 lines
404 B
TypeScript

import * as concurrently from 'concurrently';
concurrently(['echo foo']); // $ExpectType Promise<null>
// $ExpectType Promise<null>
concurrently(
[
'echo foo',
{
command: 'echo bar',
name: 'bar',
prefixColor: 'yellow',
},
],
{
prefix: 'foo',
killOthers: ['success'],
},
);
concurrently('foo'); // $ExpectError