No Password Management

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

    5.0.2 • 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

    // Type definitions for auto-launch 5.0
    // Project: https://github.com/Teamwork/node-auto-launch, https://github.com/4ver/node-auto-launch
    // Definitions by: rhysd <https://github.com/rhysd>, Daniel Perez Alvarez <https://github.com/unindented>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    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: Wed, 07 Jul 2021 21:44:39 GMT
    • Dependencies: none
    • Global values: none

    Credits

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

    Keywords

    none

    Install

    npm i @types/auto-launch

    DownloadsWeekly Downloads

    4,282

    Version

    5.0.2

    License

    MIT

    Unpacked Size

    5.18 kB

    Total Files

    4

    Last publish

    Collaborators

    • types