mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
576 B
TypeScript
11 lines
576 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', background: false }); // $ExpectType Promise<ChildProcess>
|
|
open('foo', { app: ['bar', '--arg'], wait: false }); // $ExpectType Promise<ChildProcess>
|
|
open('foo', { app: ['bar', '--arg'], background: false }); // $ExpectType Promise<ChildProcess>
|