Skip to content

Commit

Permalink
feat(ValidationError): add TS support
Browse files Browse the repository at this point in the history
  • Loading branch information
bigslycat committed Mar 3, 2019
1 parent 495929e commit 028af2b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export declare class ValidationError {
readonly valueName: string;
readonly expectedTypes: ReadonlyArray<string>;
readonly value: unknown;
readonly nested: ReadonlyArray<ValidationError>;

constructor(
valueName: string,
value: unknown,
expectedTypes?: string | ReadonlyArray<string>,
nested?: ReadonlyArray<ValidationError>,
);
}

0 comments on commit 028af2b

Please sign in to comment.