Interface Argument<TypeName, ValueType, ValidatorParams>

interface Argument<TypeName, ValueType, ValidatorParams> {
    argumentType: TypeName;
    defaultVisible?: boolean;
    description?: string;
    displayName?: string;
    hideIcon?: boolean;
    userProvided?: boolean;
    validatorParams?: ValidatorParams;
    value?: ValueType;
}

Type Parameters

  • TypeName extends ArgumentTypeName
  • ValueType = unknown
  • ValidatorParams = Record<string, unknown>

Properties

argumentType: TypeName
defaultVisible?: boolean

Can be used to hide certain advanced arguments from the UI by default. Users can still reveal them by clicking the "show more" button. Defaults to true.

description?: string

Tooltip text for the argument. If displayName is set to empty string, the tooltip text is displayed in line.

displayName?: string

Display name for the argument. If not provided, the Argument key is displayed in title case.

hideIcon?: boolean

Whether to hide the icon left to the argument. Defaults to false.

userProvided?: boolean
validatorParams?: ValidatorParams

Can be used to validate user input before proof generation as well as proactive filtering of options, such as PCDs, in the UI.

value?: ValueType

Generated using TypeDoc