@tdb/util
Version:
Shared helpers and utilities.
5 lines (4 loc) • 343 B
TypeScript
export declare type UrlQuery = Record<string, string | string[] | number | boolean | undefined>;
export declare function toObject<T>(queryString?: string): T;
export declare function valueAsFlag(value?: string | string[] | number | boolean): any;
export declare function isFlag(keys: string | string[] | undefined, query?: UrlQuery): boolean;