DefinitelyTyped/webpack-stream/index.d.ts
Benjamin Lim ad66bed9da feat: add Watching, MultiCompiler, and MultiWatching types to webpack function return type
- add Compiler, Watching classes
 - add Plugin abstract class
 - change plugins to extend Plugin

BREAKING CHANGE:
 - change Plugin apply param type from Webpack to Compiler
 - remove plugin static types
 - remove Webpack and Optimize interfaces
2017-02-08 03:06:23 +08:00

27 lines
846 B
TypeScript

// Type definitions for webpack-stream 3.2
// Project: https://github.com/shama/webpack-stream
// Definitions by: Ian Clanton-Thuon <https://github.com/iclanton>, Benjamin Lim <https://github.com/bumbleblym>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="node" />
import * as webpack from 'webpack';
export = webpackStream;
/**
* Run webpack with the specified configuration and webpack instance
*
* @param {webpack.Configuration} config - Webpack configuration
* @param {webpack} wp - A webpack object
* @param {webpack.Compiler.Handler} callback - A callback with the webpack stats and error objects.
*/
declare function webpackStream(
config?: webpack.Configuration,
wp?: typeof webpack,
callback?: webpack.Compiler.Handler,
): NodeJS.ReadWriteStream;
declare namespace webpackStream {
}