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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions