Skip to content

Commit f05cb90

Browse files
committed
chore: regenerate types with TS 3.9
(cherry picked from commit efc2178)
1 parent d2ade70 commit f05cb90

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

types/types.d.ts

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ export type ReactRefreshPluginOptions = {
5858
/**
5959
* Files to explicitly exclude from processing.
6060
*/
61-
exclude?: string | RegExp | (string | RegExp)[];
61+
exclude?: string | RegExp | Array<string | RegExp>;
6262
/**
6363
* Enables the plugin forcefully.
6464
*/
6565
forceEnable?: boolean;
6666
/**
6767
* Files to explicitly include for processing.
6868
*/
69-
include?: string | RegExp | (string | RegExp)[];
69+
include?: string | RegExp | Array<string | RegExp>;
7070
/**
7171
* Modifies how the error overlay integration works in the plugin.
7272
*/
@@ -80,34 +80,7 @@ export type OverlayOverrides = {
8080
/**
8181
* Modifies how the error overlay integration works in the plugin.
8282
*/
83-
overlay:
84-
| false
85-
| {
86-
/**
87-
* The socket host to use (WDS only).
88-
*/
89-
sockHost?: string | undefined;
90-
/**
91-
* The socket path to use (WDS only).
92-
*/
93-
sockPath?: string | undefined;
94-
/**
95-
* The socket port to use (WDS only).
96-
*/
97-
sockPort?: number | undefined;
98-
/**
99-
* The error overlay module to use.
100-
*/
101-
module: string;
102-
/**
103-
* Path to a JS file that sets up the error overlay integration.
104-
*/
105-
entry: string;
106-
/**
107-
* Path to a JS file that sets up the Webpack socket integration.
108-
*/
109-
sockIntegration: import('type-fest').LiteralUnion<'wds' | 'whm' | 'wps', string>;
110-
};
83+
overlay: false | NormalizedErrorOverlayOptions;
11184
};
11285
export type NormalizedPluginOptions = Pick<
11386
{
@@ -122,11 +95,11 @@ export type NormalizedPluginOptions = Pick<
12295
/**
12396
* Files to explicitly include for processing.
12497
*/
125-
include: string | RegExp | (string | RegExp)[];
98+
include: string | RegExp | Array<string | RegExp>;
12699
/**
127100
* Files to explicitly exclude from processing.
128101
*/
129-
exclude: string | RegExp | (string | RegExp)[];
102+
exclude: string | RegExp | Array<string | RegExp>;
130103
},
131104
'include' | 'exclude' | 'forceEnable' | 'useLegacyWDSSockets'
132105
> &

0 commit comments

Comments
 (0)