UNPKG

json-express

Version:

Parse JSON expression and transform into another forms.

31 lines (30 loc) 788 B
import { BuildTypeRecord } from './build-type'; interface FlatSchemaColumn { type?: any; name?: string; value?: any; plainLevel?: number; rest?: boolean; required?: boolean; lazy?: boolean; buildType?: string; } interface FlatSchema { [key: string]: FlatSchemaColumn; } declare class FlatSchemaMatcher { schema: FlatSchema; columns: FlatSchemaColumn[]; restColumn: FlatSchemaColumn; types: object; buildTypes: BuildTypeRecord; schemaHash: string; constructor(schema: FlatSchema); test(expression: object): boolean; getSchemaHash(): any; private static columnToString; toString(): string; private static normalizeSchemaColumns; } export default FlatSchemaMatcher; export { FlatSchema, FlatSchemaColumn };