-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Render inter-compatible type-definition files #291
Comments
damned, i got away with my crappy abuse of the source-files for too long ;-) will see what i can do. goal: be able to use this library (that is written in TypoScript4) in a project that uses typescript 3.x for compiling. |
to give some context: there is nothing wrong with the current method of announcing the type declarations based on the actual source code. if downstream users of the library compile with a typescript version that does not fully understand all features that are used, or has a different config regarding the compatibility-settings, then that downstream compiler crashes. to mitigate these crashes, it is desired to render and announce type declarations that are not inter-compatible to most popular versions of typescript (v3.X, v4.X) |
@candrews could you bump your dependency to this lib to |
Done! That was easy. The diff for the PR at snyk/cli#3983 is now much smaller. Thank you! |
no worries. thanks for pushing this feature forward. |
If this library published inter-compatible type-definitions, it would facilitate the use of the library by projects that use other versions of typescript.
For example, see snyk/cli#3983 (comment)
Thank you!
The text was updated successfully, but these errors were encountered: