quickmodel / IQValidateOptions
Interface: IQValidateOptions
Options accepted by QModel.$qValidate.
See
QModel.$qValidate — unified validation method
Properties
async?
optionalasync?:boolean
When true, runs async predicates via $qCheckRulesAsync() and returns a Promise<IQValidateResult>. When omitted or false, returns IQValidateResult synchronously.
groups?
optionalgroups?:string[]
When provided, only rules associated with these groups (via @QGroup) are evaluated. Combines results from all listed groups.
mode?
optionalmode?:"parallel"|"serial"
Execution mode for async predicates.
'parallel'(default) — all predicates run concurrently.'serial'— predicates run sequentially in field-declaration order. Only meaningful whenasync: true.
timeoutMessage?
optionaltimeoutMessage?:string
Custom error message used when a predicate exceeds timeoutMs. Only meaningful when async: true and timeoutMs is set.
timeoutMs?
optionaltimeoutMs?:number
Maximum time (ms) each async predicate may take before being marked as timed out. Only meaningful when async: true.