DefinitelyTyped/types/concurrently/concurrently-tests.ts
Piotr Błażejewicz (Peter Blazejewicz) 8b8d67c7d3
feat(concurrently): update to v5 (#42046)
This commit:
- creates v4 commpatible definition type
- bumps current version to v5
- adds documentation based on most recent version
- amends tests

Thanks!
2020-02-06 15:04:40 -08:00

30 lines
608 B
TypeScript

import concurrently = require('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(['npm:watch-*', { command: 'nodemon', name: 'server' }], {
prefix: 'name',
killOthers: ['failure', 'success'],
restartTries: 3,
}).then(
results => {},
reason => {},
);
concurrently('foo'); // $ExpectError