Skip to content

Conversation

@jgoux
Copy link
Contributor

@jgoux jgoux commented Jun 10, 2025

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Currently the .ts files in /types are leaking to the user's compilation target, they are not omitted by skipLibCheck as they aren't declaration files.

What is the new behavior?

All the exported TypeScript files are now declaration files and properly skipped by skipLibCheck.

I also moved the "types" condition in the first position in "exports", it's usually a best practice as per https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#:~:text=The%20%22types%22%20condition%20should%20always,are%20the%20same%20between%20them.

@jgoux jgoux requested a review from gregnr June 10, 2025 21:45
@gregnr gregnr merged commit cf114fd into main Jun 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants