Tinyrpc
A type safe rpc for es6 Proxy.
Example: Chrome Extension
iface.ts
// https://developer.piwik.org/guides/tracking-javascript
popup.ts
;;// Call background methodbackground.getStatus.thenconsole.logv
content_script.ts
// Providing rpc; // Consuming rpc;;// Allow called from pageBindByDombackground, ;BindByDomcontent, ;