@types/auto-launch
TypeScript icon, indicating that this package has built-in type declarations

5.0.5 • Public • Published

Installation

npm install --save @types/auto-launch

Summary

This package contains type definitions for auto-launch (https://github.com/Teamwork/node-auto-launch).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auto-launch.

index.d.ts

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`.
         */
        useLaunchAgent?: boolean | undefined;
    } | undefined;
}

declare class AutoLaunch {
    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>;
}

export = AutoLaunch;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by rhysd, and Daniel Perez Alvarez.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/auto-launch

Weekly Downloads

3,581

Version

5.0.5

License

MIT

Unpacked Size

4.68 kB

Total Files

5

Last publish

Collaborators

  • types