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; }