Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Mar 11, 2020
1 parent e56bf14 commit 9a2a807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ type MyTuple = [number, string];
const onReceive = fromEmitterArgs<MyTuple>(e, 'receive'); // creating 'receive' event

const sub = onReceive.subscribe(data => {
// data[0] = 123, and is type "number"
// data[1] = 'hello' and type "string"
// data[0] = 123, strongly-typed
// data[1] = 'hello', strongly-typed
});

e.emit('receive', 123, 'hello'); // source emitter sends multiple arguments
Expand Down

0 comments on commit 9a2a807

Please sign in to comment.