From 8ca355033bc6845e3f89222e4239e6d42bff8cbf Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Jul 2019 12:53:04 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20allow=20`Dirent~build`=20?= =?UTF-8?q?to=20accept=20`undefined`=20for=20the=20`encoding`=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Dirent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dirent.ts b/src/Dirent.ts index cdfb2415..d21e70a3 100644 --- a/src/Dirent.ts +++ b/src/Dirent.ts @@ -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();