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

chore(NODE-4153): make type fixes for ts 4.7 #3185

Merged
merged 11 commits into from Apr 4, 2022
Merged

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Mar 30, 2022

Description

What is changing?

Typescript will now be able to narrow the types of symbol properties! So a lot of nullish checks came up.

Typescript now has more strictness about constrained generics, we need to make sure the whole chain of generics we pipe through is constrained, basically extends Document everywhere.

The CI will fail, 4.6 still can't narrow symbol types so I want to check with the team before I go and write the "pull out to a normal variable" code everywhere.

What is the motivation for this change?

Types in our script made with java ☕ .

Also covers: NODE-4123, NODE-4117

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Apr 1, 2022
@nbbeeken nbbeeken marked this pull request as ready for review April 1, 2022 18:43
README.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/cursor/abstract_cursor.ts Show resolved Hide resolved
@nbbeeken nbbeeken changed the title chore: make type fixes for ts 4.7 chore(NODE-4153): make type fixes for ts 4.7 Apr 1, 2022
@nbbeeken nbbeeken added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Apr 4, 2022
@nbbeeken nbbeeken requested review from dariakp and durran April 4, 2022 14:06
durran
durran previously approved these changes Apr 4, 2022
@durran
Copy link
Member

durran commented Apr 4, 2022

I like the breakout of the evg tasks now. Nice work.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@dariakp dariakp dismissed baileympearson’s stale review April 4, 2022 17:42

comments addressed

@dariakp dariakp merged commit 43f748c into main Apr 4, 2022
@dariakp dariakp deleted the chore/fix-ts-4.7-errors branch April 4, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
4 participants