@types/csp-html-webpack-plugin
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -7,5 +7,5 @@ // Type definitions for csp-html-webpack-plugin 3.0 | ||
import { Compiler as WebpackCompiler } from 'webpack'; | ||
import { AsyncSeriesWaterfallHook } from 'tapable'; | ||
import HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
import { AsyncSeriesWaterfallHook } from "tapable"; | ||
import { Compiler as WebpackCompiler } from "webpack"; | ||
import HtmlWebpackPlugin = require("html-webpack-plugin"); | ||
@@ -22,3 +22,3 @@ export = CspHtmlWebpackPlugin; | ||
policy?: CspHtmlWebpackPlugin.Policy, | ||
additionalOpts?: CspHtmlWebpackPlugin.AdditionalOptions | ||
additionalOpts?: CspHtmlWebpackPlugin.AdditionalOptions, | ||
); | ||
@@ -51,4 +51,3 @@ | ||
// which we're using and infer the generic type variable inside. | ||
type HtmlPluginData | ||
= HtmlWebpackPlugin.Hooks extends HtmlPluginDataHookV3<infer T> ? T | ||
type HtmlPluginData = HtmlWebpackPlugin.Hooks extends HtmlPluginDataHookV3<infer T> ? T | ||
: HtmlWebpackPlugin.Hooks extends HtmlPluginDataHookV4<infer U> ? U | ||
@@ -90,3 +89,3 @@ : any; // Fallback when nothing works. | ||
*/ | ||
hashingMethod?: 'sha256' | 'sha384' | 'sha512' | undefined; | ||
hashingMethod?: "sha256" | "sha384" | "sha512" | undefined; | ||
/** | ||
@@ -105,7 +104,9 @@ * A `<string, boolean>` entry for which policy rules are allowed to | ||
declare module 'html-webpack-plugin' { | ||
declare module "html-webpack-plugin" { | ||
interface Options { | ||
cspPlugin?: CspHtmlWebpackPlugin.AdditionalOptions & { | ||
policy?: CspHtmlWebpackPlugin.Policy | undefined | ||
} | undefined; | ||
cspPlugin?: | ||
| CspHtmlWebpackPlugin.AdditionalOptions & { | ||
policy?: CspHtmlWebpackPlugin.Policy | undefined; | ||
} | ||
| undefined; | ||
} | ||
@@ -112,0 +113,0 @@ } |
{ | ||
"name": "@types/csp-html-webpack-plugin", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "TypeScript definitions for csp-html-webpack-plugin", | ||
@@ -27,4 +27,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/csp-html-webpack-plugin", | ||
}, | ||
"typesPublisherContentHash": "8b3fc0b974e6eca43ce2f59b94d08f1a3aeca017d05332d1e6862a0599c59e18", | ||
"typeScriptVersion": "3.7" | ||
"typesPublisherContentHash": "2093ae5934f6f534eedf2edb5d4db9fb5bda7698ca3707770e6814870e1351c4", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 09:08:23 GMT | ||
* Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack), [@types/tapable](https://npmjs.com/package/@types/tapable), [@types/html-webpack-plugin](https://npmjs.com/package/@types/html-webpack-plugin) | ||
* Last updated: Mon, 04 Sep 2023 15:41:29 GMT | ||
* Dependencies: [@types/html-webpack-plugin](https://npmjs.com/package/@types/html-webpack-plugin), [@types/tapable](https://npmjs.com/package/@types/tapable), [@types/webpack](https://npmjs.com/package/@types/webpack) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6634
108