Skip to content

Commit

Permalink
chore: fix default export bug (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawshankkumar authored Sep 14, 2023
1 parent 9f40a2c commit fd17899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ function getFinalStatusCode(statusCode, defaultStatusCode = 500) {
return defaultStatusCode;
}

export { expressStatusValidate };

export default expressStatusValidate ;
2 changes: 1 addition & 1 deletion package/tests/express.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import express, { Request, Response, NextFunction } from "express";
import { expressStatusValidate } from "../src/index";
import expressStatusValidate from "../src/index";

const app = express();

Expand Down

0 comments on commit fd17899

Please sign in to comment.