DefinitelyTyped/auto-launch/auto-launch-tests.ts
rhysd b49efc4030 Added definitions for auto-launch package
Project page is here.

https://github.com/Teamwork/node-auto-launch

> Launch node-webkit apps at login (mac & windows)
2015-08-21 00:55:57 +09:00

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();