Skip to content
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

Remove separately-built types #95

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

nwalters512
Copy link
Contributor

TypeScript can resolve types when they're adjacent to the files being imported. Because this repository emits type declarations to dist/{cjs,ems}, emitting types to a separate types directory is unnecessary. In fact, this can cause problems when multiple module formats are emitted, like they are in this problem.

Note that ESM support is currently broken for other reasons (see #32); this PR will not fix those. But when #94, #89, and so on land, this should leave the typing situation in the right place.

@nwalters512 nwalters512 requested a review from a team as a code owner September 9, 2024 20:26
@bryanhuhta bryanhuhta requested a review from a team as a code owner September 11, 2024 19:28
@bryanhuhta bryanhuhta merged commit ebd01d8 into grafana:main Sep 11, 2024
6 checks 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