-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
refactor: Typescript conversion of get-provider-state.js #23635
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we have any documentation around how to handle jsdoc comments differently in JavaScript vs. TypeScript but we probably should. Some usual suspects:
- Type annotations with
{}
syntax are no longer necessary in@param
,@property
. @type
,@typedef
tags are no longer necessary (and are not recognized by typedoc).
Having hard-coded types in jsdoc acting as a redundant source of truth makes intellisense and typedoc output brittle and potentially incorrect. It's better to consistently rely on the TypeScript compiler for up-to-date and accurate type information.
app/scripts/lib/rpc-method-middleware/handlers/handlers-helper.ts
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/handlers-helper.ts
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/get-provider-state.ts
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/get-provider-state.ts
Outdated
Show resolved
Hide resolved
app/scripts/lib/rpc-method-middleware/handlers/get-provider-state.ts
Outdated
Show resolved
Hide resolved
bd7d215
to
9807c25
Compare
cbea90c
to
57af8de
Compare
This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions. |
This PR was closed because there has been no follow up activity in the last 14 days. Thank you for your contributions. |
ae69489
to
b273a78
Compare
|
Builds ready [b273a78]
Page Load Metrics (88 ± 33 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #23635 +/- ##
===========================================
- Coverage 70.14% 70.14% -0.00%
===========================================
Files 1424 1424
Lines 49572 49573 +1
Branches 13868 13868
===========================================
Hits 34769 34769
- Misses 14803 14804 +1 ☔ View full report in Codecov by Sentry. |
b273a78
to
bfec575
Compare
Builds ready [49b9bb4]
Page Load Metrics (1641 ± 57 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
49b9bb4
to
18fbc83
Compare
|
9039931
to
57bbf30
Compare
Builds ready [57bbf30]
Page Load Metrics (1726 ± 66 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had one question. Otherwise LGTM.
app/scripts/lib/rpc-method-middleware/handlers/get-provider-state.ts
Outdated
Show resolved
Hide resolved
Builds ready [268df02]
Page Load Metrics (1922 ± 93 ms)
Bundle size diffs
|
Builds ready [9a0fc31]
Page Load Metrics (1996 ± 80 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Builds ready [97c5ce6]
Page Load Metrics (2126 ± 121 ms)
Bundle size diffs
|
Part of #23014
Fixes #23469
Converting the level 6 dependency file
app/scripts/lib/rpc-method-middleware/handlers/get-provider-state.js
to typescript for contributing tometamask-controller.js
.Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist