From 870d49218d6486fac1861c0f7cacfed33129d979 Mon Sep 17 00:00:00 2001 From: Blake Kostner Date: Tue, 20 Feb 2024 15:11:12 -0700 Subject: [PATCH] typescript can be ugh --- src/handlebars.ts | 4 ++-- tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/handlebars.ts b/src/handlebars.ts index ac8ea90..dbeed8f 100644 --- a/src/handlebars.ts +++ b/src/handlebars.ts @@ -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; diff --git a/tsconfig.json b/tsconfig.json index 76db3f6..3db7bc6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"]