interface NumberArg {
    type: "number";
    min?: string | number;
    max?: string | number;
    required: true;
    defaultValue: string;
    maxLength?: number;
    minLength?: number;
    label: string;
    validate: ((value) => string | boolean);
    defaultValues?: any[] | Record<string, any>;
}

Hierarchy (view full)

Properties

type: "number"
min?: string | number
max?: string | number
required: true
defaultValue: string
maxLength?: number
minLength?: number
label: string
validate: ((value) => string | boolean)

Type declaration

    • (value): string | boolean
    • Parameters

      • value: any

      Returns string | boolean

defaultValues?: any[] | Record<string, any>