-
-
Notifications
You must be signed in to change notification settings - Fork 870
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
Module can't be used in typescript #988
Comments
@radio-miskovice please see the usage in any dependant library / codebase or please submit the question to StackOverflow |
Having a bit of a problem here as well. I'm able to import is like so |
Looks like the new |
So I was finally able to nail down the syntax I needed. Using |
Are the type definitions correct, though? |
Looks like you can do import Ajv from 'ajv'; with : // tsconfig.json
"allowSyntheticDefaultImports": true, |
I am missing examples how to use this module in typescript. The usual typescript patterns do not work. ajv.d.ts does not make much sense, it cannot be used to import anything useful (executable functions or objects) into a typescript program.
Could you please show some working example?
The text was updated successfully, but these errors were encountered: