From 2f7677c371409ee1d2793b86405bbe5afae95236 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Thu, 21 Sep 2023 21:09:04 +0200 Subject: [PATCH] chore: output the reflected types enclosed in quotes for clarity --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5eec64d..759df12 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,17 +35,17 @@ console.log('Result of sqrt(-4)=', sqrt(-4)) console.log() console.log('1) NUMBER SQRT') -console.log('1.1) REFLECTED TYPE:', Specifications.numbers.sqrt.reflectedType) +console.log(`1.1) REFLECTED TYPE: "${Specifications.numbers.sqrt.reflectedType}"`) console.log('1.2) PARSED TYPE:', inspect(parseReflectedType('sqrt', Specifications.numbers.sqrt.reflectedType), { depth: null, colors: true })) console.log() console.log('2) GENERIC SQUARE') -console.log('2.1) REFLECTED TYPE:', Specifications.generic.square.reflectedType) +console.log(`1.1) REFLECTED TYPE: "${Specifications.generic.square.reflectedType}"`) console.log('2.2) PARSED TYPE:', inspect(parseReflectedType('square', Specifications.generic.square.reflectedType), { depth: null, colors: true })) console.log() console.log('3) COMPLEX SQRT') -console.log('3.1) REFLECTED TYPE:', Specifications.complex.sqrt.reflectedType) +console.log(`1.1) REFLECTED TYPE: "${Specifications.complex.sqrt.reflectedType}"`) console.log('3.2) PARSED TYPE:', inspect(parseReflectedType('sqrt', Specifications.complex.sqrt.reflectedType), { depth: null, colors: true })) // FIXME: cleanup