interface OptionalArg {
    type: "optional";
    field: AllArgTypes<types.IDL.Type<any>>;
    defaultValue: [];
    maxLength?: number;
    minLength?: number;
    label: string;
    validate: ((value) => string | boolean);
    defaultValues?: any[] | Record<string, any>;
}

Hierarchy (view full)

Properties

type: "optional"
field: AllArgTypes<types.IDL.Type<any>>
defaultValue: []
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>