Installation
npm install --save @types/github-url-to-object
Summary
This package contains type definitions for github-url-to-object (https://github.com/zeke/github-url-to-object#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/github-url-to-object.
declare namespace gh {
interface Options {
enterprise?: boolean | undefined;
}
interface Result {
user: string;
repo: string;
branch: string;
https_url: string;
tarball_url: string;
clone_url: string;
travis_url: string;
api_url: string;
zip_url: string;
}
}
declare function gh(url: string | { url: string }, options?: gh.Options): gh.Result | null;
export = gh;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Klaus Meinhardt.