From 3a787683158bd2d97aafc74577f43d989259f151 Mon Sep 17 00:00:00 2001 From: Riceball LEE Date: Wed, 28 Aug 2024 18:20:04 +0800 Subject: [PATCH] fix(lib): input return result --- lib/input.ai.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/input.ai.yaml b/lib/input.ai.yaml index 156a2f4..63ad245 100644 --- a/lib/input.ai.yaml +++ b/lib/input.ai.yaml @@ -3,6 +3,8 @@ version: 0.1.0 type: lib description: |- This script will wait for user input. + Currently the console input is only supported. + Browser input TODO. tag: - user - input @@ -15,7 +17,7 @@ output: type: 'object' properties: question: {type: 'string'} - answer: {type: 'string'} + answer: {type: ['string', 'boolean', 'number', 'array', 'object']} --- - !fn |- toText(value) { @@ -35,4 +37,5 @@ output: } - $set: result: $consoleInput -- $echo: "result.answer" +# - $print: ?=result +- $echo: ?=result.answer