mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Project page is here. https://github.com/Teamwork/node-auto-launch > Launch node-webkit apps at login (mac & windows)
18 lines
305 B
TypeScript
18 lines
305 B
TypeScript
/// <reference path="auto-launch.d.ts" />
|
|
|
|
import AutoLaunch = require('auto-launch');
|
|
|
|
var a1 = new AutoLaunch({
|
|
name: 'Foo',
|
|
});
|
|
|
|
var a2 = new AutoLaunch({
|
|
name: 'Foo',
|
|
path: '/Applications/Foo.app',
|
|
isHidden: true,
|
|
});
|
|
|
|
a1.enable();
|
|
a2.disable();
|
|
var enabled: boolean = a1.isEnabled();
|