From bbb377d6c341daecbba37fc2c33c6864c2e9c1e9 Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Fri, 25 May 2018 22:54:34 +0300 Subject: [PATCH 1/2] TypeScript: Added json to AnserOptions --- lib/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index 3475ae0..1de47cb 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -13,6 +13,7 @@ export interface AnserJsonEntry { } export interface AnserOptions { + json?: boolean; use_classes?: boolean; } From 9936fffd2a7c9cfa86d0482c73dade5891ee6601 Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Fri, 25 May 2018 23:00:21 +0300 Subject: [PATCH 2/2] Added remove_empty option --- lib/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index 1de47cb..9cc9978 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -15,6 +15,7 @@ export interface AnserJsonEntry { export interface AnserOptions { json?: boolean; use_classes?: boolean; + remove_empty?: boolean; } export function ansiToJson(txt: string, options?: AnserOptions): AnserJsonEntry[];