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

Eliminate typings folder in favor of per-target types #1

Open
wants to merge 2 commits into
base: maintainability
Choose a base branch
from

Conversation

kf6kjg
Copy link

@kf6kjg kf6kjg commented Apr 7, 2023

Took some doing since there's no nice way in TS of omitting comments from the resulting JS files but keeping them in the TS files. See microsoft/TypeScript#14619 for the relevant issue discussing this.

Took some doing since there's no nice way in TS of omitting comments from the resulting JS files but keeping them in the TS files. See microsoft/TypeScript#14619 for the relevant issue discussing this.

Fixes MichalLytek#1442
The code before this change compiled into a `.d.ts` that had `import("..").ResolversMap` - which under the `node16` module resolution strategy is an error. By being explicit about the output type the correct type import strategy is used instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants