Skip to content

Commit

Permalink
fix: Typescript error with "noImplicitAny"
Browse files Browse the repository at this point in the history
  • Loading branch information
Izhaki committed Feb 3, 2022
1 parent 94064f5 commit 071385c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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;
}

0 comments on commit 071385c

Please sign in to comment.