From df930cbceee49c1482407bcf8505a6bb7abda054 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Wed, 5 Oct 2022 12:09:06 -0500 Subject: [PATCH] Update docs to mention object-based io groups --- src/examples/basic/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/examples/basic/index.ts b/src/examples/basic/index.ts index 8713db2..ef469d8 100644 --- a/src/examples/basic/index.ts +++ b/src/examples/basic/index.ts @@ -253,6 +253,13 @@ const interval = new Interval({ const resp = await io.group(promises) console.log(resp) + + const obj = { + text: io.input.text('Text'), + num: io.input.number('Number'), + } + + const objResp = await io.group(obj) }, object_group: async io => { const resp = await io.group({