mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #18857 from psachs21/patch-2
Update definitions to v4
This commit is contained in:
commit
aa0bc8fb45
4
types/webpack-chain/index.d.ts
vendored
4
types/webpack-chain/index.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
// Type definitions for webpack-chain 3.0
|
||||
// Project: https://github.com/mozilla-neutrino/webpack-chain
|
||||
// Definitions by: Eirikur Nilsson <https://github.com/eirikurn>
|
||||
// Definitions by: Eirikur Nilsson <https://github.com/eirikurn>, Paul Sachs <https://github.com/psachs21>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as webpack from 'webpack';
|
||||
@ -83,7 +83,7 @@ declare namespace Config {
|
||||
class Module extends ChainedMap<Config> {
|
||||
rules: TypedChainedMap<this, Rule>;
|
||||
rule(name: string): Rule;
|
||||
noParse: TypedChainedSet<this, RegExp>;
|
||||
noParse(noParse: RegExp | RegExp[] | ((contentPath: string) => boolean )): this;
|
||||
}
|
||||
|
||||
class Output extends ChainedMap<Config> {
|
||||
|
||||
@ -83,7 +83,7 @@ config
|
||||
.end()
|
||||
|
||||
.module
|
||||
.noParse.add(/.min.js$/).end()
|
||||
.noParse(/.min.js$/)
|
||||
.rule('compile')
|
||||
.test(/.js$/)
|
||||
.include
|
||||
|
||||
Loading…
Reference in New Issue
Block a user