fix(fs): Fix TypeScript type issue in fs module

This commit is contained in:
2025-01-07 04:36:32 +01:00
parent 768d970918
commit be99bdae66
3 changed files with 7 additions and 2 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartfile',
version: '11.1.2',
version: '11.1.3',
description: 'Provides comprehensive tools for efficient file management in Node.js using TypeScript, including handling streams, virtual directories, and various file operations.'
}

View File

@@ -433,7 +433,7 @@ export const waitForFileToBeReady = (
const checkFileStability = async () => {
try {
const stats = await plugins.smartpromise.fromCallback((cb) =>
const stats = await plugins.smartpromise.fromCallback<plugins.fs.Stats>((cb) =>
plugins.fs.stat(filePathArg, cb)
);
if (stats.size === lastFileSize) {