@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
19 lines (18 loc) • 519 B
TypeScript
export declare class Url {
protocol: string | null;
host: string | null;
port: string | null;
path: string[];
query: Record<string, string>;
hash: string | null;
hasTrailingSlash: boolean;
constructor(url: string);
isAbsolute(): boolean;
isProtocolRelative(): boolean;
isRootRelative(): boolean;
addPath(...paths: (string | number)[]): Url;
setQuery(key: string, value: string): Url;
toString({ rootRelative }?: {
rootRelative: boolean;
}): string;
}