2.0.4 • Published 6 months ago
@types/remote-origin-url v2.0.4
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
// Type definitions for remote-origin-url 2.0
// Project: https://github.com/jonschlinkert/remote-origin-url
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 22:41:59 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by BendingBender.