Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
optimize type definitions (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
loveky authored and eliperelman committed Mar 22, 2019
1 parent 390a12c commit 2a77b02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 3 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,9 @@ declare namespace Config {
plugin(name: string): Plugin<this>;
}

class ResolveLoader extends ChainedMap<Config> {
extensions: TypedChainedSet<this, string>;
modules: TypedChainedSet<this, string>;
moduleExtensions: TypedChainedSet<this, string>;
packageMains: TypedChainedSet<this, string>;
class ResolveLoader extends Resolve {
moduleExtensions: ChainedSet<this>;
packageMains: ChainedSet<this>
}

class Rule extends ChainedMap<Module> {
Expand Down
3 changes: 3 additions & 0 deletions types/test/webpack-chain-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ config
.packageMains
.add('index.js')
.end()
.plugin('foo')
.use(webpack.DefinePlugin)
.end()
.end()

.performance
Expand Down

0 comments on commit 2a77b02

Please sign in to comment.