@types/git-repo-name
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/git-repo-name

Weekly Downloads

376

Version

1.0.4

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • types