Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix typings resolution when using TypeScript 4.7+ with ESM #83

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

Merged
mattphillips merged 1 commit into mattphillips:main from Nitive:patch-1
Nov 12, 2022

Conversation

@Nitive
Copy link
Contributor

@Nitive Nitive commented Jun 7, 2022
edited
Loading

TypeScript in ESM mode is trying to use file index.d.mts for types but there is no such file. So we need to provide custom path to typings file. Root types field is ignored in ESM mode

For reference: same issue in another package telegraf/telegraf#1629 (comment)

akselikap reacted with heart emoji
TypeScript in ESM mode is trying to use file index.d.mts for types but there is no such file. So we need to provide custom path to typings file. Root `types` field is ignored in ESM mode
@mattphillips mattphillips merged commit e12da18 into mattphillips:main Nov 12, 2022
Copy link
Owner

Thanks @Nitive

@Nitive Nitive deleted the patch-1 branch November 12, 2022 10:25
Copy link
Owner

Nitive reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /