UNPKG

@backland/schema

Version:

TypeScript schema declaration and validation library with static type inference

11 lines (10 loc) 341 B
import { FieldType, FieldTypeParser } from './FieldType'; export type IntFieldDef = { max?: number; min?: number; }; export declare class IntField extends FieldType<number, 'int', IntFieldDef | undefined> { parse: FieldTypeParser<number>; constructor(def?: IntFieldDef); static create: (def?: IntFieldDef) => IntField; }