mini-url
Version:
Lightweight isomorphic url parser.
23 lines (22 loc) • 559 B
TypeScript
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 };