Files
DefinitelyTyped/webpack/webpack.d.ts
T
2015-09-23 19:22:13 +09:00

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;
}