mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
updated script ext html webpack plugin to match interface of Plugin (#36835)
* updated definition * corrected formatting * added test * reverted changes
This commit is contained in:
parent
f8fe502c51
commit
fdc141cf05
@ -4,12 +4,14 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Plugin } from "webpack";
|
||||
import { Compiler, Plugin } from 'webpack';
|
||||
|
||||
export = ScriptExtHtmlWebpackPlugin;
|
||||
|
||||
declare class ScriptExtHtmlWebpackPlugin extends Plugin {
|
||||
constructor(options?: ScriptExtHtmlWebpackPlugin.Options);
|
||||
|
||||
apply(compiler: Compiler): void;
|
||||
}
|
||||
|
||||
type ScriptMatchingPatternBase =
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
import ScriptExtHtmlWebpackPlugin = require("script-ext-html-webpack-plugin");
|
||||
import webpack = require("webpack");
|
||||
|
||||
new ScriptExtHtmlWebpackPlugin();
|
||||
new ScriptExtHtmlWebpackPlugin({});
|
||||
|
||||
new ScriptExtHtmlWebpackPlugin().apply(new webpack.Compiler());
|
||||
|
||||
new ScriptExtHtmlWebpackPlugin({
|
||||
inline: "string",
|
||||
sync: "string",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user