From 745d8c8af474311dc59d515eae9d5f7bbc8d4111 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:26:04 +0300 Subject: [PATCH] fix: types (#19720) --- lib/FileSystemInfo.js | 6 +++--- types.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/FileSystemInfo.js b/lib/FileSystemInfo.js index 883bb9d17a6..88b1e246638 100644 --- a/lib/FileSystemInfo.js +++ b/lib/FileSystemInfo.js @@ -2172,9 +2172,9 @@ class FileSystemInfo { /** * @param {number | null | undefined} startTime when processing the files has started - * @param {Iterable | null} files all files - * @param {Iterable | null} directories all directories - * @param {Iterable | null} missing all missing files or directories + * @param {Iterable | null | undefined} files all files + * @param {Iterable | null | undefined} directories all directories + * @param {Iterable | null | undefined} missing all missing files or directories * @param {SnapshotOptions | null | undefined} options options object (for future extensions) * @param {(err: WebpackError | null, snapshot: Snapshot | null) => void} callback callback function * @returns {void} diff --git a/types.d.ts b/types.d.ts index 2dd19e18bb6..037527bdd52 100644 --- a/types.d.ts +++ b/types.d.ts @@ -5656,9 +5656,9 @@ declare abstract class FileSystemInfo { ): void; createSnapshot( startTime: undefined | null | number, - files: null | Iterable, - directories: null | Iterable, - missing: null | Iterable, + files: undefined | null | Iterable, + directories: undefined | null | Iterable, + missing: undefined | null | Iterable, options: undefined | null | SnapshotOptionsFileSystemInfo, callback: (err: null | WebpackError, snapshot: null | Snapshot) => void ): void;