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.