fix(fs): Fix TypeScript type issue in fs module
This commit is contained in:
2
ts/fs.ts
2
ts/fs.ts
@@ -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) {
|
||||
|
Reference in New Issue
Block a user