From 071385c549e1ec4400d00320bf33034b46546b2b Mon Sep 17 00:00:00 2001 From: Izhaki Date: Thu, 3 Feb 2022 23:03:07 +0000 Subject: [PATCH] fix: Typescript error with "noImplicitAny" #141 --- typings.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/typings.d.ts b/typings.d.ts index 33b4bbb..f99733a 100644 --- a/typings.d.ts +++ b/typings.d.ts @@ -1,7 +1,8 @@ import { Settings as NodemonOptions } from 'nodemon'; // We prioritise supporting CommonJS than ES6 syntax here. -// Typescript users will have to add `esModuleInterop` in `compilerOptions`. +// Typescript users will have to add `esModuleInterop` in `compilerOptions` +// or set `"allowSyntheticDefaultImports": true`. // https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require export = NodemonPlugin; @@ -10,5 +11,5 @@ declare class NodemonPlugin { // yields error TS2321: Excessive stack depth comparing types 'NodemonPlugin' and '((this: Compiler, compiler: Compiler) => void) | WebpackPluginInstance'. //apply(compiler: webpack.Compiler): void; - apply(compiler): void; + apply(compiler: any): void; }