npm.io
1.0.3 • Published 2 years ago

@types/parse-github-url

Licence
MIT
Version
1.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Klaus Meinhardt.