Skip to content

fix: generate types as type declaration files #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jgoux
Copy link

@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
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.

1 participant