Skip to content

skipLibCheck not being respected leading to different type inference behavior throwing TS7022 #1778

@a11delavar

Description

@a11delavar

I've found a type inference issue where tsgo fails to infer a type throwing TS7022 that tsc handles correctly. I have not been able to isolate this behavior in a smaller test case yet, therefore I am providing a link to the repository for now.

Steps to reproduce

  1. Clone https://github.com/3mo-esolutions/web-components
  2. Install dependencies npm i.
  3. Run tsgo --build --noEmit.

Behavior with typescript@5.9

The command tsc --build --noEmit completes without errors.

Behavior with tsgo@7.0.0-dev.20251001.1

The command tsgo --build --noEmit fails with the following type inference error:

Image

Metadata

Metadata

Assignees

Labels

Domain: Type CheckingRelated to type checking, grammar checkingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions