Skip to content

Commit

Permalink
feat(ObjectValidationError): add TS support
Browse files Browse the repository at this point in the history
  • Loading branch information
bigslycat committed Mar 3, 2019
1 parent 30afbc9 commit 4353655
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export declare class ValidationError {
);
}

export declare class ObjectValidationError extends ValidationError {
constructor(
valueName: string,
value: unknown,
errors: ReadonlyArray<ValidationError>,
);
}

export declare class ArrayValidationError extends ValidationError {
constructor(
valueName: string,
Expand Down

0 comments on commit 4353655

Please sign in to comment.