mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
extending Error on ValidationError
This commit is contained in:
parent
d0adccc436
commit
09ddcf7070
4
joi/joi.d.ts
vendored
4
joi/joi.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
// Type definitions for joi v4.6.0
|
||||
// Project: https://github.com/spumko/joi
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>, Christopher Glantschnig <https://github.com/cglantschnig>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
// TODO express type of Schema in a type-parameter (.default, .valid, .example etc)
|
||||
@ -120,7 +120,7 @@ declare module 'joi' {
|
||||
cidr?: string
|
||||
}
|
||||
|
||||
export interface ValidationError {
|
||||
export interface ValidationError extends Error {
|
||||
message: string;
|
||||
details: ValidationErrorItem[];
|
||||
simple(): string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user