interface Validator {
    validate: (data: string) => Promise<any>;
}

Implemented by

Properties

Properties

validate: (data: string) => Promise<any>

Promise completes with one of the following:

  • null, when data was valid
  • something representing the error details, when data was invalid

Promise rejects with one of the following: