Skip to content

CompileRuleOptions

Defined in: src/createParser.ts:96

Options for parser.compile() — predicate-rule error attribution

readonly optional path?: readonly PropertyKey[]

Defined in: src/createParser.ts:102

Field path a predicate failure is attributed to (e.g. [“values”, “confirmPassword”]). Defaults to the root path, which surfaces as a form-level error.


readonly optional message?: string

Defined in: src/createParser.ts:104

The “expected …” phrasing of the failure message