UNPKG

mini-url

Version:
23 lines (22 loc) 559 B
declare let URL: InterfaceURL; export interface InterfaceURL { /** * Creates a browser style URL object. * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/URL} */ new (path: string, base?: string): { protocol: string; hostname: string; pathname: string; search: string; host: string; port: string; hash: string; href: string; /** * Shortcut to retrieve the `href` for the URL. */ toString(): string; }; } export { URL };