Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 820 Bytes

ValueValidator.md

File metadata and controls

33 lines (17 loc) · 820 Bytes

realueDocs


realue / ValueValidator

Type Alias: ValueValidator()<T, E>

ValueValidator<T, E>: (value, name, error) => Promise<E | undefined> | E | undefined

Function that valides a value with a given name and returns a promise that resolves to an error, if any.

Type Parameters

T

E extends ErrorReport<any> = ErrorReport<T>

Parameters

value: T

name: Name

error: E | undefined

Returns

Promise<E | undefined> | E | undefined

Defined in

lib/types/ValueValidator.ts:6