Installation
npm install --save @types/git-url-parse
Summary
This package contains type definitions for git-url-parse (https://github.com/IonicaBizau/git-url-parse).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-url-parse.
declare namespace gitUrlParse {
interface GitUrl {
protocols: string[];
port: number | null;
resource: string;
user: string;
pathname: string;
hash: string;
search: string;
href: string;
protocol: string;
token: string;
source: string;
owner: string;
name: string;
ref: string;
filepath: string;
filepathtype: string;
full_name: string;
organization: string;
git_suffix?: boolean | undefined;
toString(type?: string): string;
}
function stringify(url: GitUrl, type?: string): string;
}
declare function gitUrlParse(url: string): gitUrlParse.GitUrl;
export = gitUrlParse;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Klaus Meinhardt.