@furystack/rest
Version:
Generic REST package
14 lines • 557 B
TypeScript
/**
* Reverses the encoding produced by `serializeValue`. Throws a 400
* {@link RequestError} on malformed input — surfaces to clients as a
* "bad request" rather than crashing the server.
*/
export declare const decode: <T>(value: string) => T;
/**
* Decodes a query string into a typed object. Empty keys/values are
* skipped. Each surviving value is deserialized via {@link decode}.
*/
export declare const deserializeQueryString: (fullQueryString: string) => {
[k: string]: unknown;
};
//# sourceMappingURL=deserialize-query-string.d.ts.map