Skip to content

validationDetail

const validationDetail: <T>(message) => (error) => any;

Defined in: elysia/dist/error.d.ts:39

Wrap a string into a TypeBox error callback that overrides the default validation message. Use as t.Number({ error: validationDetail('x must be a number') }).

Type Parameter
T
ParameterType
messageT

(error) => any

Last updated:

Type to search the documentation.

    Up arrowDown arrow to navigateEnter to selectEscape to close