@backland/schema
Version:
TypeScript schema declaration and validation library with static type inference
12 lines (11 loc) • 383 B
TypeScript
import { FieldType, FieldTypeParser } from './FieldType';
export type FloatFieldDef = {
max?: number;
min?: number;
};
export declare class FloatField extends FieldType<number, 'float', FloatFieldDef | undefined> {
parse: FieldTypeParser<number>;
constructor(def?: FloatFieldDef);
static create: (def?: FloatFieldDef) => FloatField;
toString: () => string;
}