interface Validator<T extends EmptyObject = AnyObject> {
    validate(payload: T): Promisable<Error[]>;
}

Type Parameters

Implemented by

Methods

Methods

  • Parameters

    • payload: T

    Returns Promisable<Error[]>