@platform/cell.schema
Version:
URI and database schemas for the `cell.os`.
18 lines (17 loc) • 457 B
TypeScript
import { t } from '../common';
export declare class Url<Q extends object = {}> implements t.IUrl<Q> {
constructor(args: {
origin: string;
path?: string;
query?: Partial<Q>;
querystring?: string;
});
readonly origin: string;
readonly path: string;
private readonly _;
get querystring(): string;
query(input: Partial<Q>): Url<Q>;
toString(options?: {
origin?: boolean;
}): string;
}