diff --git a/types/webpack-chain/index.d.ts b/types/webpack-chain/index.d.ts index fc9e2e158c..b062c42548 100644 --- a/types/webpack-chain/index.d.ts +++ b/types/webpack-chain/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for webpack-chain 3.0 // Project: https://github.com/mozilla-neutrino/webpack-chain -// Definitions by: Eirikur Nilsson +// Definitions by: Eirikur Nilsson , Paul Sachs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as webpack from 'webpack'; @@ -83,7 +83,7 @@ declare namespace Config { class Module extends ChainedMap { rules: TypedChainedMap; rule(name: string): Rule; - noParse: TypedChainedSet; + noParse(noParse: RegExp | RegExp[] | ((contentPath: string) => boolean )): this; } class Output extends ChainedMap { diff --git a/types/webpack-chain/webpack-chain-tests.ts b/types/webpack-chain/webpack-chain-tests.ts index ac40e70624..1118fe0d26 100644 --- a/types/webpack-chain/webpack-chain-tests.ts +++ b/types/webpack-chain/webpack-chain-tests.ts @@ -83,7 +83,7 @@ config .end() .module - .noParse.add(/.min.js$/).end() + .noParse(/.min.js$/) .rule('compile') .test(/.js$/) .include