mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add tests, run lint
This commit is contained in:
parent
3f81c4a3b7
commit
2ca09c9734
7
types/webpack/index.d.ts
vendored
7
types/webpack/index.d.ts
vendored
@ -5,6 +5,7 @@
|
||||
// Boris Cherny <https://github.com/bcherny>
|
||||
// Tommy Troy Lin <https://github.com/tommytroylin>
|
||||
// Mohsen Azimi <https://github.com/mohsen1>
|
||||
// Jonathan Creamer <https://github.com/jcreamer898>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
@ -834,9 +835,9 @@ declare namespace webpack {
|
||||
|
||||
class HashedModuleIdsPlugin extends Plugin {
|
||||
constructor(options?: {
|
||||
hashFunction: string,
|
||||
hashDigest: string,
|
||||
hashDigestLength: number
|
||||
hashFunction?: string,
|
||||
hashDigest?: string,
|
||||
hashDigestLength?: number
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -424,6 +424,12 @@ plugin = new webpack.LoaderOptionsPlugin({
|
||||
plugin = new webpack.EnvironmentPlugin(['a', 'b']);
|
||||
plugin = new webpack.EnvironmentPlugin({a: true, b: 'c'});
|
||||
plugin = new webpack.ProgressPlugin((percent: number, message: string) => {});
|
||||
plugin = new webpack.HashedModuleIdsPlugin();
|
||||
plugin = new webpack.HashedModuleIdsPlugin({
|
||||
hashFunction: 'sha256',
|
||||
hashDigest: 'hex',
|
||||
hashDigestLength: 20
|
||||
});
|
||||
|
||||
//
|
||||
// http://webpack.github.io/docs/node.js-api.html
|
||||
|
||||
Loading…
Reference in New Issue
Block a user