@@ -28,7 +28,7 @@ export = wdm;
28
28
* @typedef {ReturnType<Compiler["watch"]> } MultiWatching
29
29
*/
30
30
/**
31
- * @typedef {Compiler["outputFileSystem"] & { createReadStream?: import("fs").createReadStream, statSync?: import("fs").statSync, lstat?: import("fs").lstat, readFileSync?: import("fs").readFileSync } } OutputFileSystem
31
+ * @typedef {Compiler["outputFileSystem"] & { createReadStream?: import("fs").createReadStream, statSync?: import("fs").statSync, lstat?: import("fs").lstat, existsSync?: import("fs").existsSync, readFileSync?: import("fs").readFileSync } } OutputFileSystem
32
32
*/
33
33
/** @typedef {ReturnType<Compiler["getInfrastructureLogger"]> } Logger */
34
34
/**
@@ -66,6 +66,7 @@ export = wdm;
66
66
* @property {boolean } [serverSideRender]
67
67
* @property {OutputFileSystem } [outputFileSystem]
68
68
* @property {boolean | string } [index]
69
+ * @property {boolean | undefined } [historyApiFallback]
69
70
*/
70
71
/**
71
72
* @template {IncomingMessage} RequestInternal
@@ -172,6 +173,7 @@ type Options<
172
173
serverSideRender ?: boolean | undefined ;
173
174
outputFileSystem ?: OutputFileSystem | undefined ;
174
175
index ?: string | boolean | undefined ;
176
+ historyApiFallback ?: boolean | undefined ;
175
177
} ;
176
178
type API <
177
179
RequestInternal extends import ( "http" ) . IncomingMessage ,
@@ -204,6 +206,7 @@ type OutputFileSystem = Compiler["outputFileSystem"] & {
204
206
createReadStream ?: typeof import ( "fs" ) . createReadStream ;
205
207
statSync ?: import ( "fs" ) . StatSyncFn ;
206
208
lstat ?: typeof import ( "fs" ) . lstat ;
209
+ existsSync ?: typeof import ( "fs" ) . existsSync ;
207
210
readFileSync ?: typeof import ( "fs" ) . readFileSync ;
208
211
} ;
209
212
type Logger = ReturnType < Compiler [ "getInfrastructureLogger" ] > ;
0 commit comments