LogoRobo.js
Packages@robojs/sync

ValidateHandler()<T, ClientData>

Type Alias: ValidateHandler()<T, ClientData>

type ValidateHandler<T, ClientData> = (context) => boolean | string | Promise<boolean | string>;

Validation function - return true to accept, false or string to reject.

Type Parameters

Type ParameterDefault type
Tunknown
ClientDataunknown

Parameters

ParameterType
contextSyncUpdateContext<T, ClientData>

Returns

boolean | string | Promise<boolean | string>

On this page