diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-03-06 18:29:10 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 13:59:10 +0100 |
commit | 6ba0b7952d1ca867d0e166de4d36dcd6fe489e89 (patch) | |
tree | 9791b1dca4dbba002d61123d295ffca017785e7a /ext/node/polyfills/fs.ts | |
parent | 156950828e8c25f9de346c7cd737f1d0ebc8c1fb (diff) |
fix(node): stat/statSync returns instance of fs.Stats (#22294)
Fixes https://github.com/denoland/deno/issues/22291
---------
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'ext/node/polyfills/fs.ts')
-rw-r--r-- | ext/node/polyfills/fs.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/node/polyfills/fs.ts b/ext/node/polyfills/fs.ts index 38a7a2bfb..bf43dd92e 100644 --- a/ext/node/polyfills/fs.ts +++ b/ext/node/polyfills/fs.ts @@ -69,7 +69,12 @@ import { } from "ext:deno_node/_fs/_fs_rename.ts"; import { rmdir, rmdirPromise, rmdirSync } from "ext:deno_node/_fs/_fs_rmdir.ts"; import { rm, rmPromise, rmSync } from "ext:deno_node/_fs/_fs_rm.ts"; -import { stat, statPromise, statSync } from "ext:deno_node/_fs/_fs_stat.ts"; +import { + stat, + statPromise, + Stats, + statSync, +} from "ext:deno_node/_fs/_fs_stat.ts"; import { symlink, symlinkPromise, @@ -105,7 +110,6 @@ import { writeFilePromise, writeFileSync, } from "ext:deno_node/_fs/_fs_writeFile.ts"; -import { Stats } from "ext:deno_node/internal/fs/utils.mjs"; // @deno-types="./internal/fs/streams.d.ts" import { createReadStream, |