@backland/schema
Version:
TypeScript schema declaration and validation library with static type inference
11 lines (10 loc) • 341 B
TypeScript
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;
}