Interface VariantArg<T>

interface VariantArg<T> {
    type: "variant";
    options: string[];
    defaultValue: string;
    fields: AllArgTypes<T>[];
    defaultValues: ArgTypeFromIDLType<T>;
    maxLength?: number;
    minLength?: number;
    label: string;
    validate: ((value) => string | boolean);
}

Type Parameters

Hierarchy (view full)

Properties

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

Type declaration

    • (value): string | boolean
    • Parameters

      • value: any

      Returns string | boolean