3.2.5 • Published 2 years ago

@types/ghauth v3.2.5

Weekly downloads
124
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/ghauth

Summary

This package contains type definitions for ghauth (https://github.com/rvagg/ghauth).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ghauth.

index.d.ts

// Type definitions for ghauth 3.2
// Project: https://github.com/rvagg/ghauth
// Definitions by: Leko <https://github.com/Leko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function ghauth(authOptions: ghauth.AuthOptions, callback: (err: Error, tokenData: ghauth.TokenData) => void): void;

declare namespace ghauth {
    interface AuthOptions {
        configName: string;

        /**
         * @default false
         */
        noSave?: boolean | undefined;

        /**
         * @default "https://api.github.com/authorizations"
         */
        authUrl?: string | undefined;

        /**
         * @default "GitHub"
         */
        promptName?: string | undefined;

        /**
         * @default []
         */
        scopes?: ReadonlyArray<string> | undefined;

        /**
         * @default "Node.js command-line app with ghauth"
         */
        note?: string | undefined;

        /**
         * @default "Magic Node.js application that does magic things with ghauth"
         */
        userAgent?: string | undefined;
    }

    interface TokenData {
        user: string;
        token: string;
    }
}

export = ghauth;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:05 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Leko.

3.2.2

2 years ago

3.2.5

2 years ago

3.2.4

2 years ago

3.2.3

2 years ago

3.2.1

4 years ago

3.2.0

7 years ago