Skip to content

SkipLibCheck isn't working on erasableSyntaxCheckΒ #62975

@wparad

Description

@wparad

πŸ”Ž Search Terms

When importing a library that defines enums and namespaces in an index.d.ts file, even without importing enums or namespaces, the erasableSyntaxOnly throws an error from inside the library index.d.ts file.

This feels like a bug.

πŸ•— Version & Regression Information

All?

⏯ Playground Link

https://stackblitz.com/edit/vitejs-vite-tj46fvnq?file=package.json

πŸ’» Code

πŸ™ Actual behavior

Syntax is not allowed.

πŸ™‚ Expected behavior

No error.

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions