rvx
Version:
A signal based rendering library
18 lines (17 loc) • 484 B
TypeScript
/**
* Represents URL search parameters.
*/
export declare class Query {
#private;
constructor(raw: string, params?: URLSearchParams);
static from(init: QueryInit): Query | undefined;
get raw(): string;
get params(): URLSearchParams;
}
export type QueryInit = ConstructorParameters<typeof URLSearchParams>[0];
/**
* Format the specified query for use in a URL.
*
* Strings are returned as is.
*/
export declare function formatQuery(value: QueryInit): string;