Closed dimroc closed 5 years ago
I've not tested but i think you've got your import wrong.
try import unfurl from "unfurl.js"
or const unfurl = require("unfurl.js")
Thanks for the quick response @jacktuck.
import unfurl from "unfurl.js"
has the same issueconst unfurl = require("unfurl.js")
works and is what I've ended up doing as a stopgap, but this doesn't import the type into the typescript world, it bypasses the type definition.@dimroc Forgot to say. This should now be fixed :)
:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
When using
unfurl
like so, it leads to a complaint by typescript:This is probably because we don't export types: https://github.com/jacktuck/unfurl/blob/master/dist/index.d.ts
Let me know if I'm missing an easy step.