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)
42 lines
901 B
TypeScript
42 lines
901 B
TypeScript
// Type definitions for auto-launch 0.1.18
|
|
// Project: https://github.com/Teamwork/node-auto-launch
|
|
// Definitions by: rhysd <https://github.com/rhysd>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
interface AutoLaunchOption {
|
|
/**
|
|
* Application name.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* Hidden on launch or not. Default is false.
|
|
*/
|
|
isHidden?: boolean;
|
|
/**
|
|
* Path to application directory.
|
|
* Default is process.execPath.
|
|
*/
|
|
path?: string;
|
|
}
|
|
|
|
declare class AutoLaunch {
|
|
constructor(opts: AutoLaunchOption);
|
|
/**
|
|
* Enables to launch at start up
|
|
*/
|
|
enable(callback?: (err: Error) => void): void;
|
|
/**
|
|
* Disables to launch at start up
|
|
*/
|
|
disable(callback?: (err: Error) => void): void;
|
|
/**
|
|
* Returns if auto start up is enabled
|
|
*/
|
|
isEnabled(callback?: (err: Error) => void): boolean;
|
|
}
|
|
|
|
declare module "auto-launch" {
|
|
var al: typeof AutoLaunch;
|
|
export = al;
|
|
}
|