mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 01:30:17 +00:00
9 lines
395 B
TypeScript
9 lines
395 B
TypeScript
import open = require('open');
|
|
|
|
open('foo'); // $ExpectType Promise<ChildProcess>
|
|
|
|
open('foo', { app: 'bar' }); // $ExpectType Promise<ChildProcess>
|
|
open('foo', { app: ['bar', '--arg'] }); // $ExpectType Promise<ChildProcess>
|
|
open('foo', { app: 'bar', wait: false }); // $ExpectType Promise<ChildProcess>
|
|
open('foo', { app: ['bar', '--arg'], wait: false }); // $ExpectType Promise<ChildProcess>
|