mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[webpack-hot-middleware] Add missing 'path' option to ClientOptions (#43875)
This commit is contained in:
parent
1ace1d69bd
commit
b78e68187c
1
types/webpack-hot-middleware/index.d.ts
vendored
1
types/webpack-hot-middleware/index.d.ts
vendored
@ -20,6 +20,7 @@ declare function WebpackHotMiddleware(
|
||||
|
||||
declare namespace WebpackHotMiddleware {
|
||||
interface ClientOptions {
|
||||
path?: string;
|
||||
reload?: boolean;
|
||||
name?: string;
|
||||
timeout?: number;
|
||||
|
||||
@ -13,6 +13,7 @@ webpackHotMiddlewareInstance = webpackHotMiddleware(compiler, {
|
||||
});
|
||||
|
||||
const clientOpts: webpackHotMiddleware.ClientOptions = {
|
||||
path: '/__webpack_hmr',
|
||||
reload: true,
|
||||
name: '__webpack_hmr_custom_bundle_name',
|
||||
timeout: 1000,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user