mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-04 16:04:45 +08:00
54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
// 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;
|
|
}
|
|
|