From 66098408fc4245c01f72f033bdc7d8a6b2fc4480 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 2 May 2019 10:24:49 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20annotate=20return=20type?= =?UTF-8?q?=20of=20`toJSON`=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/volume.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/volume.ts b/src/volume.ts index 383ecb993..fa27a9351 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -808,7 +808,7 @@ export class Volume { }); } - private _toJSON(link = this.root, json = {}, path?: string) { + private _toJSON(link = this.root, json = {}, path?: string): DirectoryJSON { let isEmpty = true; for (const name in link.children) { @@ -836,7 +836,7 @@ export class Volume { return json; } - toJSON(paths?: TFilePath | TFilePath[], json = {}, isRelative = false) { + toJSON(paths?: TFilePath | TFilePath[], json = {}, isRelative = false): DirectoryJSON { const links: Link[] = []; if (paths) {