Skip to content

quickmodel / IQValidateOptions

Interface: IQValidateOptions ​

Options accepted by QModel.$qValidate.

See ​

QModel.$qValidate — unified validation method

Properties ​

async? ​

optional async?: boolean

When true, runs async predicates via $qCheckRulesAsync() and returns a Promise<IQValidateResult>. When omitted or false, returns IQValidateResult synchronously.


groups? ​

optional groups?: string[]

When provided, only rules associated with these groups (via @QGroup) are evaluated. Combines results from all listed groups.


mode? ​

optional mode?: "parallel" | "serial"

Execution mode for async predicates.

  • 'parallel' (default) — all predicates run concurrently.
  • 'serial' — predicates run sequentially in field-declaration order. Only meaningful when async: true.

timeoutMessage? ​

optional timeoutMessage?: string

Custom error message used when a predicate exceeds timeoutMs. Only meaningful when async: true and timeoutMs is set.


timeoutMs? ​

optional timeoutMs?: number

Maximum time (ms) each async predicate may take before being marked as timed out. Only meaningful when async: true.