mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
414 B
TypeScript
25 lines
414 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();
|
|
|
|
a1.isEnabled(function(enabled: boolean) {
|
|
if (enabled) {
|
|
return;
|
|
}
|
|
|
|
a1.enable(function(err){ console.log(err.message); });
|
|
});
|