From e16ff4ebc26da2622d6290cd19ae3c2597cfac42 Mon Sep 17 00:00:00 2001 From: Ties Schwertasek Date: Mon, 11 Dec 2017 00:09:19 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Allow=20=E2=80=98\t=E2=80=99=20for=20JSON?= =?UTF-8?q?=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/fs-extra/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fs-extra/index.d.ts b/types/fs-extra/index.d.ts index 82bd401c39..2cdcb78eb4 100644 --- a/types/fs-extra/index.d.ts +++ b/types/fs-extra/index.d.ts @@ -289,7 +289,7 @@ export interface WriteFileOptions { export interface WriteOptions extends WriteFileOptions { fs?: object; replacer?: any; - spaces?: number; + spaces?: number | '\t'; } export interface ReadResult { From d46e1e9e783d93f01e15e63e6528c77b168d42a5 Mon Sep 17 00:00:00 2001 From: Ties Schwertasek Date: Mon, 11 Dec 2017 00:35:36 +0100 Subject: [PATCH 2/2] Allow all strings --- types/fs-extra/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fs-extra/index.d.ts b/types/fs-extra/index.d.ts index 2cdcb78eb4..575df86b4d 100644 --- a/types/fs-extra/index.d.ts +++ b/types/fs-extra/index.d.ts @@ -289,7 +289,7 @@ export interface WriteFileOptions { export interface WriteOptions extends WriteFileOptions { fs?: object; replacer?: any; - spaces?: number | '\t'; + spaces?: number | string; } export interface ReadResult {