rvx
Version:
A signal based rendering library
31 lines • 803 B
JavaScript
export class Query {
constructor(raw, params) {
this.
this.
}
static from(init) {
if (init === undefined) {
return undefined;
}
if (typeof init === "string") {
return new Query(init);
}
const params = new URLSearchParams(init);
return new Query(params.toString(), params);
}
get raw() {
return this.
}
get params() {
if (this.
this.
}
return this.
}
}
export function formatQuery(value) {
return typeof value === "string" ? value : new URLSearchParams(value).toString();
}
//# sourceMappingURL=query.js.map