Commit Graph
2 Commits
Author SHA1 Message Date
Xiliang Chen 7b667cfb9f Improve events (#454)
* Fix typo in docs

* Improve events
Expose `error` event
Add `once`
Allow method chaining for `on` and `once`
2018-12-10 10:46:04 +01:00
Xiliang Chen 82dcbe50d5 Type registry (#428)
* basic type registry

* register all buildin types

* get types from TypeRegistry

* Update Api constructor options to include additionalTypes

* Fix linter issue

* Style improvements and rename ApiBaseOptions to ApiOptions

* refactor Api classes constructor options
2018-11-30 15:52:40 +01:00