DefinitelyTyped/webpack-stream/webpack-stream-tests.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

10 lines
338 B
TypeScript

import * as webpack from 'webpack';
import * as webpackStream from 'webpack-stream';
let output: NodeJS.ReadWriteStream;
output = webpackStream();
output = webpackStream({ entry: '' });
output = webpackStream({ entry: '' }, webpack);
output = webpackStream({ entry: '' }, webpack, (error: Error, stats: webpack.compiler.Stats) => { });