Skip to content

Commit

Permalink
feat(ArrayValidationError): add TS support
Browse files Browse the repository at this point in the history
  • Loading branch information
bigslycat committed Mar 3, 2019
1 parent 028af2b commit d63907b
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 @@ -11,3 +11,11 @@ export declare class ValidationError {
nested?: ReadonlyArray<ValidationError>,
);
}

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

0 comments on commit d63907b

Please sign in to comment.