Skip to content

Commit

Permalink
Merge pull request #1048 from manuelbieh/patch-1
Browse files Browse the repository at this point in the history
fix: use correct type for stat size
  • Loading branch information
itinance authored Feb 18, 2022
2 parents 6b22f62 + 136bf28 commit 82b339f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ type ReadDirItem = {
mtime: Date | undefined // The last modified date of the file
name: string // The name of the item
path: string // The absolute path to the item
size: string // Size in bytes
size: number // Size in bytes
isFile: () => boolean // Is the file just a file?
isDirectory: () => boolean // Is the file a directory?
}

type StatResult = {
name: string | undefined // The name of the item TODO: why is this not documented?
path: string // The absolute path to the item
size: string // Size in bytes
size: number // Size in bytes
mode: number // UNIX file mode
ctime: number // Created date
mtime: number // Last modified date
Expand Down

0 comments on commit 82b339f

Please sign in to comment.