@@ -483,7 +483,7 @@ interface BlockStatement extends Node_4, HasSpan {
483483}
484484
485485// @public (undocumented)
486- type BonjourServer = any ;
486+ type BonjourServer = Record < string , any > ;
487487
488488// @public (undocumented)
489489interface BooleanLiteral extends Node_4 , HasSpan {
@@ -645,7 +645,7 @@ export type ChunkLoading = false | ChunkLoadingType;
645645export type ChunkLoadingGlobal = string ;
646646
647647// @public
648- export type ChunkLoadingType = string | " jsonp" | " import-scripts" | " require" | " async-node" | " import" ;
648+ export type ChunkLoadingType = LiteralUnion < " jsonp" | " import-scripts" | " require" | " async-node" | " import" , string > ;
649649
650650// @public (undocumented)
651651export type ChunkPathData = {
@@ -1636,7 +1636,7 @@ export interface CssExtractRspackPluginOptions {
16361636 // (undocumented)
16371637 insert? : string | ((linkTag : HTMLLinkElement ) => void );
16381638 // (undocumented)
1639- linkType? : string | " text/css" | false ;
1639+ linkType? : LiteralUnion < " text/css" , string > | false ;
16401640 // (undocumented)
16411641 pathinfo? : boolean ;
16421642 // (undocumented)
@@ -1780,7 +1780,7 @@ type DevServerOptions<A extends BasicApplication = BasicApplication, S extends B
17801780 compress? : boolean | undefined ;
17811781 allowedHosts? : string | string [] | undefined ;
17821782 historyApiFallback? : boolean | HistoryApiFallbackOptions | undefined ;
1783- bonjour? : boolean | Record < string , never > | BonjourServer | undefined ;
1783+ bonjour? : boolean | BonjourServer | undefined ;
17841784 watchFiles? : string | string [] | WatchFiles | (string | WatchFiles )[] | undefined ;
17851785 static? : string | boolean | Static | (string | Static )[] | undefined ;
17861786 server? : ServerType <A , S > | ServerConfiguration <A , S > | undefined ;
@@ -2890,7 +2890,7 @@ interface GlobalPassOption {
28902890}
28912891
28922892// @public (undocumented)
2893- type GotHandler = (result : any | null , callback : (error : Error | null ) => void ) => void ;
2893+ type GotHandler < T = any > = (result : T | null , callback : (error : Error | null ) => void ) => void ;
28942894
28952895// @public (undocumented)
28962896type GroupConfig <T , R = T > = {
@@ -4202,7 +4202,7 @@ export type LibraryOptions = {
42024202};
42034203
42044204// @public
4205- export type LibraryType = string | " var" | " module" | " assign" | " assign-properties" | " this" | " window" | " self" | " global" | " commonjs" | " commonjs2" | " commonjs-module" | " commonjs-static" | " amd" | " amd-require" | " umd" | " umd2" | " jsonp" | " system" ;
4205+ export type LibraryType = LiteralUnion < " var" | " module" | " assign" | " assign-properties" | " this" | " window" | " self" | " global" | " commonjs" | " commonjs2" | " commonjs-module" | " commonjs-static" | " amd" | " amd-require" | " umd" | " umd2" | " jsonp" | " system" , string > ;
42064206
42074207// @public (undocumented)
42084208export type LightningcssFeatureOptions = {
@@ -4296,6 +4296,9 @@ const LimitChunkCountPlugin: {
42964296// @public (undocumented)
42974297type Literal = StringLiteral | BooleanLiteral | NullLiteral | NumericLiteral | BigIntLiteral | RegExpLiteral | JSXText ;
42984298
4299+ // @public
4300+ export type LiteralUnion <T extends U , U > = T | (U & Record <never , never >);
4301+
42994302// @public (undocumented)
43004303export type Loader = Record <string , any >;
43014304
@@ -5654,7 +5657,7 @@ type PluginImportOptions = PluginImportConfig[];
56545657export type Plugins = Plugin_2 [];
56555658
56565659// @public (undocumented)
5657- type Port = number | string | " auto" ;
5660+ type Port = number | LiteralUnion < " auto" , string > ;
56585661
56595662// @public (undocumented)
56605663type PrintedElement = {
@@ -5789,8 +5792,8 @@ type ProxyConfigArray = (ProxyConfigArrayItem | ((req?: Request_2, res?: Respons
57895792
57905793// @public (undocumented)
57915794type ProxyConfigArrayItem = {
5792- path? : HttpProxyMiddlewareOptionsFilter | undefined ;
5793- context? : HttpProxyMiddlewareOptionsFilter | undefined ;
5795+ path? : HttpProxyMiddlewareOptionsFilter ;
5796+ context? : HttpProxyMiddlewareOptionsFilter ;
57945797} & {
57955798 bypass? : ByPass ;
57965799} & {
@@ -5812,7 +5815,7 @@ interface PseudoClasses {
58125815}
58135816
58145817// @public
5815- export type PublicPath = " auto" | Filename ;
5818+ export type PublicPath = LiteralUnion < " auto" , string > | Exclude < Filename , string > ;
58165819
58175820// @public (undocumented)
58185821type Purge = (files ? : string | string [] | Set <string >) => void ;
@@ -6483,6 +6486,7 @@ declare namespace rspackExports {
64836486 IgnoreWarningsNormalized ,
64846487 OptimizationRuntimeChunkNormalized ,
64856488 RspackOptionsNormalized ,
6489+ LiteralUnion ,
64866490 FilenameTemplate ,
64876491 Filename ,
64886492 Name ,
@@ -7112,7 +7116,7 @@ type ServerOptions = ServerOptions_2 & {
71127116type ServerResponse_2 = ServerResponse ;
71137117
71147118// @public (undocumented)
7115- type ServerType <A extends BasicApplication = BasicApplication , S extends BasicServer = Server_3 <IncomingMessage , ServerResponse >> = " http" | " https" | " spdy" | " http2" | string | ((arg0 : ServerOptions , arg1 : A ) => S );
7119+ type ServerType <A extends BasicApplication = BasicApplication , S extends BasicServer = Server_3 <IncomingMessage , ServerResponse >> = LiteralUnion < " http" | " https" | " spdy" | " http2" , string > | ((arg0 : ServerOptions , arg1 : A ) => S );
71167120
71177121// @public (undocumented)
71187122type ServeStaticOptions = {
@@ -8088,7 +8092,7 @@ interface TerserCompressOptions_2 {
80888092type TerserEcmaVersion = 5 | 2015 | 2016 | string | number ;
80898093
80908094// @public (undocumented)
8091- type TerserEcmaVersion_2 = 5 | 2015 | 2016 | string | number ;
8095+ type TerserEcmaVersion_2 = LiteralUnion < 5 | 2015 | 2016 , number > | string ;
80928096
80938097// @public (undocumented)
80948098interface TerserMangleOptions {
@@ -9018,7 +9022,7 @@ export const wasm: Wasm;
90189022export type WasmLoading = false | WasmLoadingType ;
90199023
90209024// @public
9021- export type WasmLoadingType = string | " fetch-streaming" | " fetch" | " async-node" ;
9025+ export type WasmLoadingType = LiteralUnion < " fetch-streaming" | " fetch" | " async-node" , string > ;
90229026
90239027// @public (undocumented)
90249028type WasmPlugin = [wasmPackage : string , config : Record <string , any >];
0 commit comments