Skip to content

Function: createValidationRegistry()

API / @xmachines/play-dom / createValidationRegistry

function createValidationRegistry(store, customFunctions?): ValidationRegistry;

Defined in: @xmachines/json-render-dom

Create a validation registry bound to store.

Parameters

ParameterTypeDescription
storeStateStoreLive state store; field values are read from its current snapshot on every validate call, so a validation sees writes made in the same handler.
customFunctions?Record<string, ValidationFunction>Catalog validation functions, keyed by check type.

Returns

ValidationRegistry