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: placate TypeScript 4.4 #809

Merged
merged 2 commits into from
Sep 1, 2021
Merged

fix: placate TypeScript 4.4 #809

merged 2 commits into from
Sep 1, 2021

Conversation

AprilArcus
Copy link
Contributor

TypeScript 4.4 assigns errors the type unknown by default in catch clauses. This PR supplies the necessary assertions to safely extract the message field in browserTransport.ts, and rethrows the error if it fails to meet these expectations.

@google-cla google-cla bot added the cla: yes label Aug 31, 2021
@AprilArcus AprilArcus changed the title placate TypeScript 4.4 fix: placate TypeScript 4.4 Aug 31, 2021
@github-actions

This comment has been minimized.

@AprilArcus AprilArcus force-pushed the april/typescript-4.4 branch 2 times, most recently from f24e118 to 6733f40 Compare August 31, 2021 21:21
@github-actions
Copy link
Contributor

Typescript Tests

    6 files  ±0    75 suites  ±0   3m 34s ⏱️ +3s
164 tests ±0  160 ✔️ ±0    4 💤 ±0  0 ❌ ±0 
546 runs  ±0  534 ✔️ ±0  12 💤 ±0  0 ❌ ±0 

Results for commit 1d39ec0. ± Comparison against base commit 99db26d.

@jkaster
Copy link
Contributor

jkaster commented Aug 31, 2021

@joeldodge79 adding you because of the version bump in the rtl package.json .. that may be the domain of release-please?

packages/sdk-rtl/package.json Outdated Show resolved Hide resolved
Co-authored-by: Joel Dodge <joeldodge@google.com>
@github-actions
Copy link
Contributor

Typescript Tests

    6 files  ±0    75 suites  ±0   3m 22s ⏱️ -9s
164 tests ±0  160 ✔️ ±0    4 💤 ±0  0 ❌ ±0 
546 runs  ±0  534 ✔️ ±0  12 💤 ±0  0 ❌ ±0 

Results for commit ade5a19. ± Comparison against base commit 99db26d.

Copy link
Contributor

@jkaster jkaster left a comment

Choose a reason for hiding this comment

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

LGTM

@AprilArcus AprilArcus merged commit 6509c17 into main Sep 1, 2021
@AprilArcus AprilArcus deleted the april/typescript-4.4 branch September 1, 2021 15:14
@github-actions

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants