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

fix(tsc): add .at() types manually to tsc, update to tsc v4.3.5 #11443

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Jul 19, 2021

Fixes: #11441

This manually adds the types for .at() types to arrays and strings. It is a bit "hacky", but essentially the same way we add "dom.asynciterable" to TypeScript.

Something we should revert once in a released version of TypeScript (but will likely just overwrite when it is finally included).

Added a simply js_unit test which validates that it should pass type checking.

Also updated to the latest release version of TypeScript (4.3.2 -> 4.3.5).

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kitsonk kitsonk merged commit 07eb44e into denoland:main Jul 19, 2021
@kitsonk kitsonk deleted the kitsonk/issue11441 branch July 19, 2021 01:56
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.

Array.at and friends not available for typechecking
2 participants