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

fix: Preserve type members of namespace in re-exported module #323

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Oct 31, 2024

Previously we would generate declare const …: typeof … which declares an object with the same value members but none of the type members.

Previously we would generate `declare const …: typeof …` which
declares an object with the same value members but none of the type
members.

Fixes Swatinem#322.

Signed-off-by: Anders Kaseorg <[email protected]>
@Swatinem Swatinem merged commit 1882d11 into Swatinem:master Oct 31, 2024
8 checks passed
chenjiahan pushed a commit to web-infra-dev/rspack that referenced this pull request Nov 1, 2024
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.

Does not preserve type members of namespace in re-exported module (breaks Zod)
2 participants