-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
JSON files generate declarations #34761
Comments
#32372 enables declaration for |
Thanks, I haven't noticed that it enabled it for |
Hmm, Node at least will load
|
Yah, our filename generation assumes the same extension stripping behavior on import for all extensions. I'm... Conflicted? On generating a |
Point against |
@weswigham Maybe at least there should be a flag to disable emitting declaration files for |
…e.ts files See microsoft/TypeScript#34761 Signed-off-by: Raymond Feng <[email protected]>
…e.ts files See microsoft/TypeScript#34761 Signed-off-by: Raymond Feng <[email protected]>
…e.ts files See microsoft/TypeScript#34761 Signed-off-by: Raymond Feng <[email protected]>
I'm in a Catch 22 situation here, and would really appreciate a way out - e.g., a boolean flag to turn off declaration output for
@weswigham - I understand there are many considerations to take into account here, but some way to deal with this issue would be nice. |
Am I correct in thinking this also poses a problem in projects that don't specify an
|
It's the same thing the happens when you have both a |
AFAIK this was already done in #36066, so I'm closing this. |
…e.ts files See microsoft/TypeScript#34761 Signed-off-by: Raymond Feng <[email protected]>
…e.ts files See microsoft/TypeScript#34761 Signed-off-by: Raymond Feng <[email protected]>
TypeScript Version: 3.8.0-dev.20191026
Search Terms: json, declarations
Code
Expected behavior:
(same as on v3.6.4)
Actual behavior:
Playground Link:
Related Issues: #34676
The text was updated successfully, but these errors were encountered: