Installation
npm install --save @types/git-repo-name
Summary
This package contains type definitions for git-repo-name (https://github.com/jonschlinkert/git-repo-name).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-repo-name.
index.d.ts
export = gitRepoName;
declare function gitRepoName(options?: string | gitRepoName.Options): Promise<string>;
declare function gitRepoName(callback: (err: Error | null, repoName: string) => void): void;
declare function gitRepoName(
options: string | gitRepoName.Options,
callback: (err: Error | null, repoName: string) => void,
): void;
declare namespace gitRepoName {
function promise(options?: string | Options): Promise<string>;
function sync(options?: string | Options): string;
interface Options {
cwd?: string | undefined;
path?: string | undefined;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.