mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
9 lines
388 B
TypeScript
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>
|