npm.io
2.0.4 • Published 2 years ago

@types/remote-origin-url

Licence
MIT
Version
2.0.4
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/remote-origin-url

Summary

This package contains type definitions for remote-origin-url (https://github.com/jonschlinkert/remote-origin-url).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/remote-origin-url.

index.d.ts

export = remoteOriginUrl;

declare function remoteOriginUrl(
    options?: string | remoteOriginUrl.Options,
): Promise<string | undefined>;
declare function remoteOriginUrl(callback: remoteOriginUrl.Callback): void;
declare function remoteOriginUrl(
    options: string | remoteOriginUrl.Options,
    callback: remoteOriginUrl.Callback,
): void;

declare namespace remoteOriginUrl {
    function promise(options?: string | Options): Promise<string | undefined>;
    function sync(options?: string | Options): string | undefined;

    interface Options {
        path?: string | undefined;
    }

    type Callback = (error: Error | null, url?: string) => void;
}

Additional Details

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

Credits

These definitions were written by BendingBender.