Skip to content

Commit 82b339f

Browse files
authored
Merge pull request itinance#1048 from manuelbieh/patch-1
fix: use correct type for stat size
2 parents 6b22f62 + 136bf28 commit 82b339f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ type ReadDirItem = {
1212
mtime: Date | undefined // The last modified date of the file
1313
name: string // The name of the item
1414
path: string // The absolute path to the item
15-
size: string // Size in bytes
15+
size: number // Size in bytes
1616
isFile: () => boolean // Is the file just a file?
1717
isDirectory: () => boolean // Is the file a directory?
1818
}
1919

2020
type StatResult = {
2121
name: string | undefined // The name of the item TODO: why is this not documented?
2222
path: string // The absolute path to the item
23-
size: string // Size in bytes
23+
size: number // Size in bytes
2424
mode: number // UNIX file mode
2525
ctime: number // Created date
2626
mtime: number // Last modified date

0 commit comments

Comments
 (0)