Per discussion in #62, this allows importing modules to use "normal" imports, which is important for typescript since it doesn't understand `capnp.importSystem()` and friends. We could also merge in the type declarations themselves, but that isn't strictly necessary, since typescript is built around being able to supply your own stubs for other libraries. I may do something in that vein in a follow-on pr, but I want to think a bit about how this will all fit together.
2 lines
67 B
JavaScript
2 lines
67 B
JavaScript
module.exports = require("capnp").importSystem("capnp/rpc.capnp");
|