mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add webpack
This commit is contained in:
Vendored
+53
@@ -0,0 +1,53 @@
|
||||
// Type definitions for webpack
|
||||
// Project: https://github.com/webpack/webpack
|
||||
// Definitions by: Qubo <https://github.com/tkqubo>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "webpack" {
|
||||
namespace webpack {
|
||||
interface Configuration {
|
||||
module?: Module;
|
||||
plugins?: Plugin[];
|
||||
}
|
||||
|
||||
interface Module {
|
||||
loaders?: Loader[];
|
||||
}
|
||||
|
||||
interface Loader {
|
||||
test: RegExp;
|
||||
loader?: string;
|
||||
loaders?: string[];
|
||||
query?: {
|
||||
[name: string]: any;
|
||||
}
|
||||
}
|
||||
|
||||
interface Plugin {
|
||||
}
|
||||
|
||||
interface ResolverPlugin extends Plugin {
|
||||
}
|
||||
|
||||
interface ResolverPluginStatic {
|
||||
new(plugins: Plugin[], files: string[]): ResolverPlugin;
|
||||
DirectoryDescriptionFilePlugin: DirectoryDescriptionFilePluginStatic;
|
||||
}
|
||||
|
||||
interface DirectoryDescriptionFilePlugin extends Plugin {
|
||||
}
|
||||
|
||||
interface DirectoryDescriptionFilePluginStatic {
|
||||
new(file: string, files: string[]): DirectoryDescriptionFilePlugin;
|
||||
}
|
||||
|
||||
interface Webpack {
|
||||
ResolverPlugin: ResolverPluginStatic;
|
||||
}
|
||||
}
|
||||
|
||||
var webpack: webpack.Webpack;
|
||||
|
||||
export default webpack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user