Skip to content

Commit 4ed02bb

Browse files
committed
chore: ts at comments
1 parent dda8999 commit 4ed02bb

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const noop = () => {};
4545
*/
4646

4747
/**
48-
* @typedef {Compiler["outputFileSystem"] & { createReadStream?: import("fs").createReadStream, statSync?: import("fs").statSync, lstat?: import("fs").lstat, readFileSync?: import("fs").readFileSync }} OutputFileSystem
48+
* @typedef {Compiler["outputFileSystem"] & { createReadStream?: import("fs").createReadStream, statSync?: import("fs").statSync, lstat?: import("fs").lstat, existsSync?: import("fs").existsSync, readFileSync?: import("fs").readFileSync }} OutputFileSystem
4949
*/
5050

5151
/** @typedef {ReturnType<Compiler["getInfrastructureLogger"]>} Logger */
@@ -88,6 +88,7 @@ const noop = () => {};
8888
* @property {boolean} [serverSideRender]
8989
* @property {OutputFileSystem} [outputFileSystem]
9090
* @property {boolean | string} [index]
91+
* @property {boolean | undefined} [historyApiFallback]
9192
*/
9293

9394
/**

src/utils/getFilenameFromUrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function getFilenameFromUrl(context, url) {
9696
}
9797

9898
if (
99+
context.outputFileSystem.existsSync &&
99100
!context.outputFileSystem.existsSync(filename) &&
100101
options.historyApiFallback
101102
) {

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export = wdm;
6666
* @property {boolean} [serverSideRender]
6767
* @property {OutputFileSystem} [outputFileSystem]
6868
* @property {boolean | string} [index]
69+
* @property {boolean | undefined} [historyApiFallback]
6970
*/
7071
/**
7172
* @template {IncomingMessage} RequestInternal

0 commit comments

Comments
 (0)