Skip to content

postgrelize / AttributeValidatorFunction

Type Alias: AttributeValidatorFunction ​

AttributeValidatorFunction = (value) => unknown

Defined in: src/validation/types.ts:4

Custom attribute validator; throw (or reject) to fail. Called with the instance as this.

Parameters ​

value ​

unknown

Returns ​

unknown

Released under the MIT License.