@types/remote-origin-url
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

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 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/remote-origin-url

Weekly Downloads

927

Version

2.0.4

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • types