UNPKG

@backland/schema

Version:

TypeScript schema declaration and validation library with static type inference

10 lines (9 loc) 312 B
import { FieldType, FieldTypeParser } from './FieldType'; export type IDFieldDef = { autoCreate?: boolean; }; export declare class IDField extends FieldType<string, 'ID', IDFieldDef> { parse: FieldTypeParser<string>; constructor(def?: IDFieldDef); static create: (def?: IDFieldDef) => IDField; }