Skip to content

Commit

Permalink
feat(UnionError): add TS support
Browse files Browse the repository at this point in the history
  • Loading branch information
bigslycat committed Mar 3, 2019
1 parent d63907b commit bcc946a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ export declare class ArrayValidationError extends ValidationError {
errors: ReadonlyArray<ValidationError>,
);
}

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

0 comments on commit bcc946a

Please sign in to comment.