Skip to content

Commit

Permalink
rolling back typescript change
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKeig committed Feb 26, 2021
1 parent 3d13675 commit 71b746e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export declare const Joi: joiRoot;

export declare function validate(schema: schema, options?: EvOptions, joiRoot?: ValidationOptions): RequestHandler;

export class ValidationError extends JoiError {
export class ValidationError {
name: string;
message: string;
statusCode: number;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-validation",
"version": "3.0.7",
"version": "3.0.8",
"author": "Andrew Keig <andrew.keig@gmail.com>",
"description": "express-validation is a middleware that validates a request and returns a response with errors; if any of the configured validation rules fail.",
"main": "./lib/index",
Expand Down

0 comments on commit 71b746e

Please sign in to comment.