export import
of types is not allowed in namespaces when using erasableSyntaxOnly
#61326
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
export import alias type-only namespaces erasableSyntaxOnly
π Version & Regression Information
erasableSyntaxOnly
was just releasedβ― Playground Link
https://www.typescriptlang.org/play/?erasableSyntaxOnly=true&ts=5.8.2#code/PTAEBcAsEsGdQO4HsBOBrWBYAUAOwIYC2AprAA74DGxEAnmaaAN46ijEAeZq4oAJsUoAbfChrh6NAGJIkbALygAjDgC+OHCFAAjAK68ocfklK4A5L2ToANKHxCoSXQHNIoaODPwJDALRJcIVpbcFkcAhJyKnFJWAB1D0gAJWJObhReFmw2NJ53QnTeABVQRR9GNQ1sLUN4IyQ0fFpwolIKalAAN3tdRiycrjzKANheADNZUuVK7Bxyuyny2AA6GSQ5yVAORdiEqBTcjOWi1dkgA
π» Code
π Actual behavior
export import
re-exporting a namespace (or namespace member) of a type-only namespace from another type-only namespace results inThis syntax is not allowed when 'erasableSyntaxOnly' is enabled.
π Expected behavior
It should not error.
Additional information about the issue
@jakebailey asked me to open an issue to track this on bsky: https://bsky.app/profile/jakebailey.dev/post/3ljdc3ou7oc2w
The text was updated successfully, but these errors were encountered: