@types/webpack-dev-middleware
Advanced tools
Comparing version 4.1.3 to 4.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for webpack-dev-middleware 4.1 | ||
// Type definitions for webpack-dev-middleware 4.2 | ||
// Project: https://github.com/webpack/webpack-dev-middleware | ||
@@ -11,4 +11,5 @@ // Definitions by: Benjamin Lim <https://github.com/bumbleblym> | ||
import * as webpack from 'webpack'; | ||
import { NextHandleFunction } from 'connect'; | ||
import * as webpack from "webpack"; | ||
import { IncomingMessage, NextHandleFunction } from "connect"; | ||
import { ServerResponse } from "http"; | ||
@@ -39,5 +40,3 @@ export = WebpackDevMiddleware; | ||
/** This property allows a user to pass custom HTTP headers on each request. eg. { "X-Custom-Header": "yes" } */ | ||
headers?: { | ||
[name: string]: string; | ||
}; | ||
headers?: Record<string, string> | HeadersHandle; | ||
/** The public path that the middleware is bound to */ | ||
@@ -84,2 +83,6 @@ publicPath?: string; | ||
} | ||
interface HeadersHandle { | ||
(req: IncomingMessage, res: ServerResponse, context: Context): Record<string, string> | void; | ||
} | ||
} |
{ | ||
"name": "@types/webpack-dev-middleware", | ||
"version": "4.1.3", | ||
"version": "4.2.0", | ||
"description": "TypeScript definitions for webpack-dev-middleware", | ||
@@ -46,4 +46,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "5daf74dbba393c781bf696e0e9cfbab3c4d2c9980d6629c454ae8224322e2035", | ||
"typesPublisherContentHash": "f25e6c35fbba1ea0607cc1141c7596bc3cb7e836d80884897fb1a8dba422507c", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 09 May 2021 12:31:25 GMT | ||
* Last updated: Wed, 12 May 2021 09:01:22 GMT | ||
* Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack), [@types/connect](https://npmjs.com/package/@types/connect) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
7049
76