Interface RecordArg<T>

interface RecordArg<T> {
    type: "record";
    fields: AllArgTypes<T>[];
    defaultValues: Record<string, ArgTypeFromIDLType<T>>;
    maxLength?: number;
    minLength?: number;
    label: string;
    validate: ((value) => string | boolean);
    defaultValue?: any;
}

Type Parameters

Hierarchy (view full)

Properties

type: "record"
fields: AllArgTypes<T>[]
defaultValues: Record<string, ArgTypeFromIDLType<T>>
maxLength?: number
minLength?: number
label: string
validate: ((value) => string | boolean)

Type declaration

    • (value): string | boolean
    • Parameters

      • value: any

      Returns string | boolean

defaultValue?: any