@speckle/shared
Version:
Shared code between various Speckle JS packages
44 lines • 1.11 kB
TypeScript
/**
* Similar to URL, except without the requirement of having a valid origin/baseUrl
*/
export declare class RelativeURL extends URL {
constructor(url: string);
/**
* @deprecated Not supported in relative URL
*/
get host(): string;
/**
* @deprecated Not supported in relative URL
*/
get hostname(): string;
get href(): string;
/**
* @deprecated Not supported in relative URL
*/
get origin(): string;
/**
* @deprecated Not supported in relative URL
*/
get password(): string;
/**
* @deprecated Not supported in relative URL
*/
get protocol(): string;
/**
* @deprecated Not supported in relative URL
*/
get port(): string;
/**
* @deprecated Not supported in relative URL
*/
get username(): string;
get path(): string;
get pathOnly(): string;
get fullPath(): string;
toJSON(): string;
toString(): string;
static canParse(url: string | URL): boolean;
static parse(url: string | URL): RelativeURL | null;
}
//# sourceMappingURL=url.d.ts.map