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

test: check erasable namespaces are supported #162

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

marco-ippolito
Copy link
Member

@kdy1 I think we should support type stripping of empty namespaces because they are erasable and are supported by erasableSyntaxOnly

cc @nodejs/typescript

Tests copied from bloomberg/ts-blank-space#32

@kdy1
Copy link
Member

kdy1 commented Jan 30, 2025

Can you file an issue on swc?

@jakebailey
Copy link

You may also want to test the error cases as well; there are some interesting ones like empty expressions (which I'm hoping swc also gets right)

@marco-ippolito
Copy link
Member Author

Added tests case that should fail

@marco-ippolito
Copy link
Member Author

@nodejs/typescript PTAL

@marco-ippolito marco-ippolito merged commit e489d48 into main Feb 4, 2025
8 checks passed
@marco-ippolito marco-ippolito deleted the check-name-spaces branch February 4, 2025 17:08
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.

3 participants