-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing library in TypeScript environment #6
Comments
@DamianGlowala 🤔 it should work out of the box, maybe I broke something recently will take a look this weekend and let you know |
@DamianGlowala pd will love to see that plugin |
VariantJS is exported in the following way Regarding the second issue, it comes from eslint (so technically I assume there could be a space for improvement but this can no longer be considered an issue): |
@DamianGlowala I see the problem the readme says that you should use the
Just updated the docs |
I am making a Nuxt.js plugin which will register VariantJS. @alfonsobries, have you came across the following issues while using TypeScript? Seems like variantJS variable mentioned in readme isn't exported for external use. I looked at the core lib but it doesn't appear to be available there either. Do we also need to explicitly add an entry to
types
in tsconfig.json to deal with the second error (shown below)?PS. Big thumbs up for typed config! So much less error prone :)
The text was updated successfully, but these errors were encountered: