UNPKG

unquery

Version:

Build and control queries with confidence.

12 lines (11 loc) 575 B
import { StringifyOptions } from './stringify'; declare type LocationQuery<T> = { [k in keyof T]: T[k]; } | string; /** Replace all URL search */ export declare const replaceLocationURL: <T extends Record<string, any>>(query: LocationQuery<T>, options?: StringifyOptions) => void; /** Add query-string without removing other search */ export declare const addLocationURL: <T extends Record<string, any>>(query: LocationQuery<T>, options?: StringifyOptions) => void; /** Clear current URL search */ export declare const clearLocationURL: () => void; export {};