@types/parse-github-url
Version:
TypeScript definitions for parse-github-url
19 lines (14 loc) • 373 B
TypeScript
/// <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;