Files
DefinitelyTyped/types/opn/opn-tests.ts
2017-10-25 17:49:21 -04:00

9 lines
388 B
TypeScript

import opn = require('opn');
opn('foo'); // $ExpectType Promise<ChildProcess>
opn('foo', { app: 'bar' }); // $ExpectType Promise<ChildProcess>
opn('foo', { app: ['bar', '--arg'] }); // $ExpectType Promise<ChildProcess>
opn('foo', { app: 'bar', wait: false }); // $ExpectType Promise<ChildProcess>
opn('foo', { app: ['bar', '--arg'], wait: false }); // $ExpectType Promise<ChildProcess>