Skip to content
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

#78 fix: empty .d.ts files are now valid TS modules #142

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

tgelu
Copy link

@tgelu tgelu commented Jul 21, 2021

#78

In 75846f3 an empty .d.ts file was changed from export default {}; to nothing due to the former not being valid TS from version >2.6.

But the issue after that change, as described in #78 , is that an empty .d.ts file cannot be used in practice when importing, since those would not be valid TS modules.

In this PR I suggest to generate export {}; for files with no type information. This is both valid TS and makes the file a valid TS module.

@Quramy Quramy merged commit 19a1d9d into Quramy:master Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants