mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
813 B
TypeScript
28 lines
813 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
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="node" />
|
|
|
|
import * as webpack from 'webpack';
|
|
|
|
export = webpackStream;
|
|
|
|
/**
|
|
* Run webpack with the specified configuration and webpack instance
|
|
*
|
|
* @param config - Webpack configuration
|
|
* @param wp - A webpack object
|
|
* @param 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 {
|
|
}
|