UNPKG

protoobject

Version:

A universal class for creating any JSON objects and simple manipulations with them.

5 lines (4 loc) 173 B
/** * The function of validating the fields of an object when it is transformed from/to a database */ export type ValidatorFunction<T> = (data: unknown) => T | undefined;