I have a problem with writing the interface definition of js-tokens. Please help. #69149
Unanswered
Longqin88888
asked this question in
Request a new @types package
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write an interface definition for the 5.0.0 version of the js-tokens library. I've run into a problem that I hope can be solved.
js-tokens uses export.default to export a regular expression. The import method in JS is as follows:
var jsTokens = require("js-tokens").default.
More information can be seen https://github.com/lydell/js-tokens/tree/v5.0.0
Beta Was this translation helpful? Give feedback.
All reactions