UNPKG

unquery

Version:

Build and control queries with confidence.

10 lines (9 loc) 391 B
import { UnqueryOptions } from './types'; export declare const Unquery: { <T extends Record<string, any>>(input: string, shape: T, options?: UnqueryOptions): Record<string, any>; string(): string; number(): number; bool(): boolean; array<T_1 extends string | number | boolean>(innerType?: T_1): T_1[]; custom<T_2>(callback?: (value: string) => T_2): T_2; };