@types/auto-launch
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -7,42 +7,42 @@ // Type definitions for auto-launch 5.0 | ||
interface AutoLaunchOptions { | ||
/** | ||
* Application name. | ||
*/ | ||
name: string; | ||
/** | ||
* Path to application. Default is `process.execPath`. | ||
*/ | ||
path?: string | undefined; | ||
/** | ||
* Hidden on launch. Default is `false`. | ||
*/ | ||
isHidden?: boolean | undefined; | ||
/** | ||
* For Mac-only options. | ||
*/ | ||
mac?: { | ||
/** | ||
* By default, AppleScript is used to add a Login Item. If this is `true`, Launch Agent will be used to auto-launch your app. Defaults is `false`. | ||
* Application name. | ||
*/ | ||
useLaunchAgent?: boolean | undefined; | ||
} | undefined; | ||
name: string; | ||
/** | ||
* Path to application. Default is `process.execPath`. | ||
*/ | ||
path?: string | undefined; | ||
/** | ||
* Hidden on launch. Default is `false`. | ||
*/ | ||
isHidden?: boolean | undefined; | ||
/** | ||
* For Mac-only options. | ||
*/ | ||
mac?: { | ||
/** | ||
* By default, AppleScript is used to add a Login Item. If this is `true`, Launch Agent will be used to auto-launch your app. Defaults is `false`. | ||
*/ | ||
useLaunchAgent?: boolean | undefined; | ||
} | undefined; | ||
} | ||
declare class AutoLaunch { | ||
constructor(options: AutoLaunchOptions); | ||
constructor(options: AutoLaunchOptions); | ||
/** | ||
* Enables auto-launch at start up. | ||
*/ | ||
enable(): Promise<void>; | ||
/** | ||
* Disables auto-launch at start up. | ||
*/ | ||
disable(): Promise<void>; | ||
/** | ||
* Returns true if auto-launch is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
/** | ||
* Enables auto-launch at start up. | ||
*/ | ||
enable(): Promise<void>; | ||
/** | ||
* Disables auto-launch at start up. | ||
*/ | ||
disable(): Promise<void>; | ||
/** | ||
* Returns true if auto-launch is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
} | ||
export = AutoLaunch; |
{ | ||
"name": "@types/auto-launch", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "TypeScript definitions for auto-launch", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auto-launch", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "1a22f327a19fb20336782573c929212590ccc58f02f1b819609d814cb4eba9b5", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "9c5fd9842c45c6ee22cb35211e8aded182e2c38a9cc371f7ecae610c087ffb1e", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -17,40 +17,40 @@ # Installation | ||
interface AutoLaunchOptions { | ||
/** | ||
* Application name. | ||
*/ | ||
name: string; | ||
/** | ||
* Path to application. Default is `process.execPath`. | ||
*/ | ||
path?: string | undefined; | ||
/** | ||
* Hidden on launch. Default is `false`. | ||
*/ | ||
isHidden?: boolean | undefined; | ||
/** | ||
* For Mac-only options. | ||
*/ | ||
mac?: { | ||
/** | ||
* By default, AppleScript is used to add a Login Item. If this is `true`, Launch Agent will be used to auto-launch your app. Defaults is `false`. | ||
* Application name. | ||
*/ | ||
useLaunchAgent?: boolean | undefined; | ||
} | undefined; | ||
name: string; | ||
/** | ||
* Path to application. Default is `process.execPath`. | ||
*/ | ||
path?: string | undefined; | ||
/** | ||
* Hidden on launch. Default is `false`. | ||
*/ | ||
isHidden?: boolean | undefined; | ||
/** | ||
* For Mac-only options. | ||
*/ | ||
mac?: { | ||
/** | ||
* By default, AppleScript is used to add a Login Item. If this is `true`, Launch Agent will be used to auto-launch your app. Defaults is `false`. | ||
*/ | ||
useLaunchAgent?: boolean | undefined; | ||
} | undefined; | ||
} | ||
declare class AutoLaunch { | ||
constructor(options: AutoLaunchOptions); | ||
constructor(options: AutoLaunchOptions); | ||
/** | ||
* Enables auto-launch at start up. | ||
*/ | ||
enable(): Promise<void>; | ||
/** | ||
* Disables auto-launch at start up. | ||
*/ | ||
disable(): Promise<void>; | ||
/** | ||
* Returns true if auto-launch is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
/** | ||
* Enables auto-launch at start up. | ||
*/ | ||
enable(): Promise<void>; | ||
/** | ||
* Disables auto-launch at start up. | ||
*/ | ||
disable(): Promise<void>; | ||
/** | ||
* Returns true if auto-launch is enabled. | ||
*/ | ||
isEnabled(): Promise<boolean>; | ||
} | ||
@@ -63,3 +63,3 @@ | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 21:44:39 GMT | ||
* Last updated: Fri, 22 Sep 2023 18:11:04 GMT | ||
* Dependencies: none | ||
@@ -66,0 +66,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5328