interface RecursiveArg {
    type: "recursive";
    name: string;
    extract: (() => VariantArg<types.IDL.Type<any>>);
    maxLength?: number;
    minLength?: number;
    label: string;
    validate: ((value) => string | boolean);
    defaultValue?: any;
    defaultValues?: any[] | Record<string, any>;
}

Hierarchy (view full)

Properties

type: "recursive"
name: string
extract: (() => VariantArg<types.IDL.Type<any>>)

Type declaration

maxLength?: number
minLength?: number
label: string
validate: ((value) => string | boolean)

Type declaration

    • (value): string | boolean
    • Parameters

      • value: any

      Returns string | boolean

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