Skip to Content

The RuleConditionOption2 type of the TypeScript SDK, part of RuleCondition.

type RuleConditionOption2 = {
  field: ('subject' | 'listId')
  not?: boolean
  op: ('contains' | 'is' | 'matches' | 'regex' | 'exists')
  value?: string
}

Fields

FieldTypeDescription
field('subject' | 'listId')
notbooleanOptional. Invert this condition @default false
op('contains' | 'is' | 'matches' | 'regex' | 'exists')
valuestringOptional.

Used in

RuleCondition.

On this page