@dossierhq/core
Version:
The core Dossier library used by clients and server alike, used to interact with schema and entities directly, as well as remotely through a client.
10 lines (9 loc) • 538 B
TypeScript
type Query = Record<string, string | string[] | undefined>;
export declare function encodeObjectToURLSearchParams(params: object | undefined, options?: {
keepEmptyObjects: boolean;
}): URLSearchParams;
export declare function encodeURLSearchParams(urlSearchParams: URLSearchParams, params: object | undefined, options?: {
keepEmptyObjects: boolean;
}): void;
export declare function decodeURLSearchParamsParam<TReturn>(urlSearchParams: Readonly<URLSearchParams> | Query | undefined, name: string): TReturn | undefined;
export {};