Skip to content

Commit

Permalink
fix: 🐛 allow Dirent~build to accept undefined for the encoding
Browse files Browse the repository at this point in the history
…parameter
  • Loading branch information
G-Rath committed Jul 7, 2019
1 parent 82ed81b commit 8ca3550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dirent.ts
Expand Up @@ -8,7 +8,7 @@ const { S_IFMT, S_IFDIR, S_IFREG, S_IFBLK, S_IFCHR, S_IFLNK, S_IFIFO, S_IFSOCK }
* A directory entry, like `fs.Dirent`.
*/
export class Dirent {
static build(link: Link, encoding: TEncodingExtended) {
static build(link: Link, encoding: TEncodingExtended | undefined) {
const dirent = new Dirent();
const { mode } = link.getNode();

Expand Down

0 comments on commit 8ca3550

Please sign in to comment.