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

Attempt to use TS 4.5 type resolution #2858

Closed
wants to merge 3 commits into from
Closed

Attempt to use TS 4.5 type resolution #2858

wants to merge 3 commits into from

Conversation

novemberborn
Copy link
Member

Per https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#esm-nodejs this tries to tell TypeScript where to find the type definitions through the exports field. It doesn't seem to work though with ava/plugin, so I'll leave this as a draft for now.

…resolution

Plugins are experimental so we can mandate TS 4.5 to get TS support.
Add TS 4.5 type resolution, with fallback for TS 4.4.
@novemberborn
Copy link
Member Author

Also, sadly, it doesn't let us provide different type definitions based on the import mechanism, so it doesn't let us remove #2836.

@novemberborn
Copy link
Member Author

TypeScript has removed these features from 4.5.

@novemberborn novemberborn deleted the ts4.5 branch December 5, 2021 14:07
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.

None yet

1 participant