Documentation / zerotal / validator / runStringRulesAsync
Function: runStringRulesAsync()
runStringRulesAsync(
data,rules):Promise<Record<string,string[]>>
Defined in: packages/validator/src/stringRules.ts:293
Async variant of runStringRules. Currently wraps the synchronous engine; exists so
callers (e.g. Flow's await this.validate()) have a stable async entry point as
database-backed string rules (unique/exists) are layered in.
Parameters
data
Record<string, unknown>
rules
Returns
Promise<Record<string, string[]>>