Skip to content

Commit

Permalink
Update docs to mention object-based io groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed Oct 5, 2022
1 parent 95e5b0d commit df930cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/examples/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit df930cb

Please sign in to comment.