Constructors
constructor
- new Rule(id, rule, comment?): Rule
Parameters
- id: string
- rule: Formula
- comment: string = ''
Properties
Methods
evaluate
- evaluate(data): Promise<boolean>
Parameters
- data: Record<string, any>
Returns Promise<boolean>
toJsonReady
- toJsonReady(): Record<string, any>
Returns Record<string, any>
A Rule that can be evaluated