mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
[fail-on-errors-webpack-plugin]: New definition (#46130)
This commit is contained in:
parent
8477438b98
commit
8a912db4eb
@ -0,0 +1,10 @@
|
||||
import FailOnErrorsPlugin = require('fail-on-errors-webpack-plugin');
|
||||
import { Plugin } from 'webpack';
|
||||
|
||||
// Test if constructors are assignable to `Webpack.Plugin`
|
||||
const plugin1: Plugin = new FailOnErrorsPlugin();
|
||||
const plugin2: Plugin = new FailOnErrorsPlugin({});
|
||||
const plugin3: Plugin = new FailOnErrorsPlugin({
|
||||
failOnErrors: true,
|
||||
failOnWarnings: true,
|
||||
});
|
||||
12
types/fail-on-errors-webpack-plugin/index.d.ts
vendored
Normal file
12
types/fail-on-errors-webpack-plugin/index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
// Type definitions for fail-on-errors-webpack-plugin 3.0
|
||||
// Project: https://github.com/AustinMatherne/fail-on-errors-webpack-plugin
|
||||
// Definitions by: Ciarán Ingle <https://github.com/inglec-arista>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { Plugin } from 'webpack';
|
||||
|
||||
declare class FailOnErrorsWebpackPlugin extends Plugin {
|
||||
constructor(options?: { failOnErrors?: boolean; failOnWarnings?: boolean });
|
||||
}
|
||||
|
||||
export = FailOnErrorsWebpackPlugin;
|
||||
19
types/fail-on-errors-webpack-plugin/tsconfig.json
Normal file
19
types/fail-on-errors-webpack-plugin/tsconfig.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "../",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": ["es6"],
|
||||
"module": "commonjs",
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"typeRoots": ["../"],
|
||||
"types": []
|
||||
},
|
||||
"files": [
|
||||
"fail-on-errors-webpack-plugin-tests.ts",
|
||||
"index.d.ts"
|
||||
]
|
||||
}
|
||||
1
types/fail-on-errors-webpack-plugin/tslint.json
Normal file
1
types/fail-on-errors-webpack-plugin/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user