From 59857b7fa80e352d9bae8ebd3e2426ea9fd72066 Mon Sep 17 00:00:00 2001 From: Jon Allured Date: Mon, 21 Jan 2019 16:38:21 -0600 Subject: [PATCH] Obey type safety This probably isn't what I ultimately want, but it does pass the linter. --- src/commands/current/index.ts | 2 +- src/commands/known/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/current/index.ts b/src/commands/current/index.ts index 30a6627..5ce7405 100644 --- a/src/commands/current/index.ts +++ b/src/commands/current/index.ts @@ -9,7 +9,7 @@ export default class Current extends Command { async run() { try { const data = new PearData() - const current = data.current + const current = JSON.stringify(data.current) this.log(current) } catch (error) { this.handleError(error) diff --git a/src/commands/known/index.ts b/src/commands/known/index.ts index 13b8aaf..119c499 100644 --- a/src/commands/known/index.ts +++ b/src/commands/known/index.ts @@ -9,7 +9,7 @@ export default class Known extends Command { async run() { try { const data = new PearData() - const known = data.known + const known = JSON.stringify(data.known) this.log(known) } catch (error) { this.handleError(error)