@types/webpack
Advanced tools
Comparing version 3.0.14 to 3.8.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for webpack 3.0 | ||
// Type definitions for webpack 3.8 | ||
// Project: https://github.com/webpack/webpack | ||
@@ -10,2 +10,3 @@ // Definitions by: Qubo <https://github.com/tkqubo> | ||
// Ahmed T. Ali <https://github.com/ahmed-taj> | ||
// Alan Agius <https://github.com/alan-agius4> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -102,2 +103,4 @@ | ||
performance?: Options.Performance; | ||
/** Limit the number of parallel processed modules. Can be used to fine tune performance or to get more reliable profiling results */ | ||
parallelism?: number; | ||
} | ||
@@ -172,2 +175,4 @@ | ||
libraryTarget?: 'var' | 'this' | 'commonjs' | 'commonjs2' | 'amd' | 'umd' | 'window' | 'assign' | 'jsonp'; | ||
/** Configure which module or modules will be exposed via the `libraryTarget` */ | ||
libraryExport?: string | string[]; | ||
/** If output.libraryTarget is set to umd and output.library is set, setting this to true will name the AMD module. */ | ||
@@ -187,3 +192,3 @@ umdNamedDefine?: boolean; | ||
/** A RegExp or an array of RegExps. Don’t parse files matching. */ | ||
noParse?: RegExp | RegExp[]; | ||
noParse?: RegExp | RegExp[] | ((content: string) => boolean); | ||
unknownContextRequest?: string; | ||
@@ -210,5 +215,6 @@ unknownContextRecursive?: boolean; | ||
} | ||
type Module = OldModule | NewModule; | ||
interface NewResolve { | ||
interface Resolve { | ||
/** | ||
@@ -310,69 +316,4 @@ * A list of directories to resolve modules from. | ||
interface OldResolve { | ||
/** Replace modules by other modules or paths. */ | ||
alias?: { [key: string]: string; }; | ||
interface ResolveLoader extends Resolve { | ||
/** | ||
* The directory (absolute path) that contains your modules. | ||
* May also be an array of directories. | ||
* This setting should be used to add individual directories to the search path. | ||
* | ||
* @deprecated Replaced by `modules` in webpack 2. | ||
*/ | ||
root?: string | string[]; | ||
/** | ||
* An array of directory names to be resolved to the current directory as well as its ancestors, and searched for modules. | ||
* This functions similarly to how node finds “node_modules” directories. | ||
* For example, if the value is ["mydir"], webpack will look in “./mydir”, “../mydir”, “../../mydir”, etc. | ||
* | ||
* @deprecated Replaced by `modules` in webpack 2. | ||
*/ | ||
modulesDirectories?: string[]; | ||
/** | ||
* A directory (or array of directories absolute paths), | ||
* in which webpack should look for modules that weren’t found in resolve.root or resolve.modulesDirectories. | ||
* | ||
* @deprecated Replaced by `modules` in webpack 2. | ||
*/ | ||
fallback?: string | string[]; | ||
/** | ||
* An array of extensions that should be used to resolve modules. | ||
* For example, in order to discover CoffeeScript files, your array should contain the string ".coffee". | ||
*/ | ||
extensions?: string[]; | ||
/** | ||
* Check these fields in the package.json for suitable files. | ||
* | ||
* @deprecated Replaced by `mainFields` in webpack 2. | ||
*/ | ||
packageMains?: Array<string | string[]>; | ||
/** | ||
* Check this field in the package.json for an object. Key-value-pairs are threaded as aliasing according to this spec | ||
* | ||
* @deprecated Replaced by `aliasFields` in webpack 2. | ||
*/ | ||
packageAlias?: Array<string | string[]>; | ||
/** | ||
* Enable aggressive but unsafe caching for the resolving of a part of your files. | ||
* Changes to cached paths may cause failure (in rare cases). An array of RegExps, only a RegExp or true (all files) is expected. | ||
* If the resolved path matches, it’ll be cached. | ||
* | ||
* @deprecated Split into `unsafeCache` and `cachePredicate` in webpack 2. | ||
*/ | ||
unsafeCache?: RegExp | RegExp[] | boolean; | ||
} | ||
type Resolve = OldResolve | NewResolve; | ||
interface OldResolveLoader extends OldResolve { | ||
/** | ||
* It describes alternatives for the module name that are tried. | ||
* @deprecated Replaced by `moduleExtensions` in webpack 2. | ||
*/ | ||
moduleTemplates?: string[]; | ||
} | ||
interface NewResolveLoader extends NewResolve { | ||
/** | ||
* List of strings to append to a loader's name when trying to resolve it. | ||
@@ -385,4 +326,2 @@ */ | ||
type ResolveLoader = OldResolveLoader | NewResolveLoader; | ||
type ExternalsElement = string | RegExp | ExternalsObjectElement | ExternalsFunctionElement; | ||
@@ -431,3 +370,3 @@ | ||
// tslint:disable-next-line:no-empty-interface | ||
interface ConditionArray extends Array<Condition> {} | ||
interface ConditionArray extends Array<Condition> { } | ||
type Condition = string | RegExp | ((absPath: string) => boolean) | ConditionSpec | ConditionArray; | ||
@@ -625,3 +564,3 @@ | ||
abstract class MultiCompiler implements ICompiler { | ||
abstract class MultiCompiler extends Tapable implements ICompiler { | ||
run(handler: MultiCompiler.Handler): void; | ||
@@ -676,2 +615,4 @@ watch(watchOptions: MultiCompiler.WatchOptions, handler: MultiCompiler.Handler): MultiWatching; | ||
cached?: boolean; | ||
/** Show cached assets (setting this to `false` only shows emitted files) */ | ||
cachedAssets?: true; | ||
/** Add children information */ | ||
@@ -689,8 +630,22 @@ children?: boolean; | ||
context?: string; | ||
/** Display the distance from the entry point for each module */ | ||
depth?: false; | ||
/** Display the entry points with the corresponding bundles */ | ||
entrypoints?: boolean; | ||
/** Add --env information */ | ||
env?: boolean; | ||
/** Add errors */ | ||
errors?: boolean; | ||
/** Add details to errors (like resolving log) */ | ||
errorDetails?: boolean; | ||
/** Add errors */ | ||
errors?: boolean; | ||
/** Exclude assets from being displayed in stats */ | ||
excludeAssets?: StatsExcludeFilter; | ||
/** Exclude modules from being displayed in stats */ | ||
excludeModules?: StatsExcludeFilter; | ||
/** See excludeModules */ | ||
exclude?: StatsExcludeFilter; | ||
/** Add the hash of the compilation */ | ||
hash?: boolean; | ||
/** Set the maximum number of modules to be shown */ | ||
maxModules?: number; | ||
/** Add built modules information */ | ||
@@ -700,2 +655,4 @@ modules?: boolean; | ||
modulesSort?: string; | ||
/** Show dependencies and origin of warnings/errors */ | ||
moduleTrace?: boolean; | ||
/** Add public path information */ | ||
@@ -713,2 +670,10 @@ publicPath?: boolean; | ||
warnings?: boolean; | ||
/** Show which exports of a module are used */ | ||
usedExports?: boolean; | ||
/** Filter warnings to be shown */ | ||
warningsFilter?: string | RegExp | Array<string | RegExp> | ((warning: string) => boolean); | ||
/** Show performance hint when file size exceeds `performance.maxAssetSize` */ | ||
performance?: boolean; | ||
/** Show the exports of the modules */ | ||
providedExports?: boolean; | ||
} | ||
@@ -718,2 +683,4 @@ | ||
type StatsExcludeFilter = string | string[] | RegExp | RegExp[] | ((assetName: string) => boolean) | Array<(assetName: string) => boolean>; | ||
interface ToStringOptionsObject extends ToJsonOptionsObject { | ||
@@ -753,3 +720,3 @@ /** `webpack --colors` equivalent */ | ||
class DefinePlugin extends Plugin { | ||
constructor(definitions: {[key: string]: any}); | ||
constructor(definitions: { [key: string]: any }); | ||
} | ||
@@ -880,3 +847,3 @@ | ||
class NamedChunksPlugin extends Plugin { | ||
constructor(nameResolver?: (chunk: any) => string | null ); | ||
constructor(nameResolver?: (chunk: any) => string | null); | ||
} | ||
@@ -908,7 +875,7 @@ | ||
class EnvironmentPlugin extends Plugin { | ||
constructor(envs: string[] | {[key: string]: any}); | ||
constructor(envs: string[] | { [key: string]: any }); | ||
} | ||
class ProvidePlugin extends Plugin { | ||
constructor(definitions: {[key: string]: any}); | ||
constructor(definitions: { [key: string]: any }); | ||
} | ||
@@ -947,3 +914,3 @@ | ||
namespace optimize { | ||
class ModuleConcatenationPlugin extends Plugin {} | ||
class ModuleConcatenationPlugin extends Plugin { } | ||
class AggressiveMergingPlugin extends Plugin { | ||
@@ -1284,3 +1251,3 @@ constructor(options?: AggressiveMergingPlugin.Options); | ||
*/ | ||
emitFile(name: string, content: Buffer|string, sourceMap: any): void; | ||
emitFile(name: string, content: Buffer | string, sourceMap: any): void; | ||
@@ -1287,0 +1254,0 @@ /** |
{ | ||
"name": "@types/webpack", | ||
"version": "3.0.14", | ||
"version": "3.8.0", | ||
"description": "TypeScript definitions for webpack", | ||
@@ -41,2 +41,7 @@ "license": "MIT", | ||
"githubUsername": "ahmed-taj" | ||
}, | ||
{ | ||
"name": "Alan Agius", | ||
"url": "https://github.com/alan-agius4", | ||
"githubUsername": "alan-agius4" | ||
} | ||
@@ -55,4 +60,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "a55d418e2f57df151311216b156d85e317afd8349eecc8cbb590a8703adaaac8", | ||
"typesPublisherContentHash": "417bba82cfef5c5a37b697db9146d62ecd1e870e22df6980cdd0f1790f78427b", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 25 Oct 2017 16:19:00 GMT | ||
* Last updated: Mon, 06 Nov 2017 18:59:43 GMT | ||
* Dependencies: tapable, uglify-js, node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Qubo <https://github.com/tkqubo>, Benjamin Lim <https://github.com/bumbleblym>, 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>, Ahmed T. Ali <https://github.com/ahmed-taj>. | ||
These definitions were written by Qubo <https://github.com/tkqubo>, Benjamin Lim <https://github.com/bumbleblym>, 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>, Ahmed T. Ali <https://github.com/ahmed-taj>, Alan Agius <https://github.com/alan-agius4>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55605
1132