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

1.1.2 • Public • Published

Installation

npm install --save @types/npm-whoami

Summary

This package contains type definitions for npm-whoami (https://github.com/jamestalmage/npm-whoami#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-whoami.

index.d.ts

export = whoami;

declare function whoami(callback: whoami.WhoamiCallback, opts?: whoami.WhoamiOptions): void;

declare namespace whoami {
    interface WhoamiCallback {
        (err: Error, username: undefined): void;
        (err: null, username: string): void;
    }

    type WhoamiOptions = number | string | BothOptions;

    interface BothOptions {
        registry?: string;
        timeout?: number;
    }

    function sync(opts: WhoamiOptions): string | undefined;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Josh Goldberg.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/npm-whoami

Weekly Downloads

904

Version

1.1.2

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • types