micaww / rage-rpc

A universal, asynchronous RPC implementation for RAGE Multiplayer
33 stars 20 forks source link

Add default export #7

Closed Yiin closed 5 years ago

Yiin commented 5 years ago

it's just somewhat annoyign to write import * as rpc from 'rage-rpc'; every time you want to import whole package. You could import only the methods you use, but they by themselves does not exactly describe what they do (e.g. register() can mean a lot of things, while rpc.register is much easier to understand)