@types/parse-github-url
Version:
TypeScript definitions for parse-github-url
38 lines (28 loc) • 1.06 kB
Markdown
# Installation
> `npm install --save @types/parse-github-url`
# Summary
This package contains type definitions for parse-github-url (https://github.com/jonschlinkert/parse-github-url).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-github-url.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-github-url/index.d.ts)
````ts
/// <reference types="node" />
import { Url } from "url";
declare namespace gh {
interface Result extends Url {
filepath: string | null;
owner: string | null;
name: string | null;
repo: string | null;
repository: string | null;
branch: string;
}
}
declare function gh(url: string): gh.Result | null;
export = gh;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Klaus Meinhardt](https://github.com/ajafff).