Closed mitchelljustin closed 5 years ago
Thanks for opening an issue!
It seems that our typings are using export default
, rather than export
, which prevents Typescript from displaying the correct error message and breaks as *
imports. I'll push a fix ASAP to address this issue. Regardless, you must set "esModuleInterop": true
in your tsconfig.json if you would like to use a default export.
Ah excellent, that works. Thanks!
The typings have been fixed in release 0.5.2-beta.0
.
import createLnRpc from "@radar/lnrpc"
doesn't seem to work.createLnRpc
isn't a function.Platform: darwin_x64 Node: v11.10.1 @radar/lnrpc version: 0.5.2-beta