Skip to content

🐛 Bug: Emitted d.ts references internal only typescript types which causes errors in the d.ts file when typechecking #759

@sadan4

Description

@sadan4

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

The emitted d.ts not to reference non-existent types

Actual

The emitted d.t references non-existent types

Additional Info

https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/typings/typescript.d.ts augments the typescript namespace to include some internal types.

The method in question, https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/src/flags.ts#L92-L101, is marked with @internal and stripInternal could be enabled to fix this issue.

This makes it impossible to type-check a project without skipLibCheck enabled, as it will always have type errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this! 🙏type: bugSomething isn't working 🐛

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions