mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-24 01:32:46 +00:00
This commit: - creates v4 commpatible definition type - bumps current version to v5 - adds documentation based on most recent version - amends tests Thanks!
30 lines
608 B
TypeScript
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
|