query-state-hook
Version:
Easily manage the state of your React components via URL query parameters
22 lines (21 loc) • 594 B
TypeScript
type Props = {
queryName: string;
searchParams: ConstructorParameters<typeof URLSearchParams>[number];
};
export declare class URLSearchParamsWrapper {
private queryName;
private urlSearchParams;
constructor(props: Props);
set(value: string): void;
append(value: string): void;
get(): string;
getAll(): string[];
delete(): void;
has(): boolean;
entries(): URLSearchParamsIterator<[string, string]>;
keys(): URLSearchParamsIterator<string>;
sort(): void;
values(): URLSearchParamsIterator<string>;
toString(): string;
}
export {};