Skip to content

Commit

Permalink
typescript can be ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
btkostner committed Feb 20, 2024
1 parent 2676098 commit 870d492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Handlebars.registerHelper("or", function (...params) {

for (const value of params) {
if (value) {
return options.fn(this as any);
return options.fn(this);
}
}

return options.inverse(this as any);
return options.inverse(this);
});

export default Handlebars;
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"compilerOptions": {
"esModuleInterop": true,
"module": "commonjs",
"noImplicitAny": true,
"noImplicitAny": false,
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"strict": false,
"target": "es6"
},
"exclude": ["node_modules", "**/*.test.ts"]
Expand Down

0 comments on commit 870d492

Please sign in to comment.