Skip to content

Commit

Permalink
chore(passport): try to fix weird type error
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi committed Apr 28, 2022
1 parent 3c821e9 commit 3a54493
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/lib/passport-local-with-otp/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-check
/**
* Module dependencies.
*/
const Strategy = require("./strategy")
var Strategy = require("./strategy")

/**
* Expose `Strategy` directly from package.
Expand All @@ -12,5 +11,4 @@ exports = module.exports = Strategy
/**
* Export constructors.
*/
// @ts-ignore
exports.Strategy = Strategy
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@
"strictNullChecks": true
},
"include": ["./src"],
"exclude": ["src/**/__generated__/*.ts", "**/node_modules", "**/.*/"]
"exclude": [
"src/**/__generated__/*.ts",
"src/lib/passport-local-with-otp",
"**/node_modules",
"**/.*/"
]
}

0 comments on commit 3a54493

Please sign in to comment.