Skip to content

chore: add types for submitRequestToBackground fn in ui/store/actions.ts#22522

Merged
HowardBraham merged 4 commits intodevelopfrom
add-types-actionsts
Jan 27, 2024
Merged

chore: add types for submitRequestToBackground fn in ui/store/actions.ts#22522
HowardBraham merged 4 commits intodevelopfrom
add-types-actionsts

Conversation

@davidmurdoch
Copy link
Copy Markdown
Contributor

Description

I'm working on updating our TypeScript version to v5.3.3, and this code will fail to typecheck in the newest version. There are a dependency issues to work through, so I'm PRring ahead of the other updates since it can't hurt to have some better types now.

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@github-actions
Copy link
Copy Markdown
Contributor

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.

Comment on lines 3324 to 3332
): ThunkAction<
Promise<
[
{ destinationAmount: string; decimals: number; aggregator: string },
string,
]
>,
Promise<Quotes>,
MetaMaskReduxState,
unknown,
AnyAction
> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Prettier is requiring you to change the line breaks here

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (263f84b) 68.05% compared to head (db38d29) 68.05%.

Files Patch % Lines
ui/store/actions.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #22522   +/-   ##
========================================
  Coverage    68.05%   68.05%           
========================================
  Files         1087     1087           
  Lines        42798    42798           
  Branches     11372    11372           
========================================
  Hits         29122    29122           
  Misses       13676    13676           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [5e39f36]
Page Load Metrics (836 ± 35 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint951801182010
domContentLoaded115918105
load7469978367235
domInteractive115918105
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@HowardBraham HowardBraham merged commit 3e166b7 into develop Jan 27, 2024
@HowardBraham HowardBraham deleted the add-types-actionsts branch January 27, 2024 04:58
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2024
@metamaskbot metamaskbot added the release-11.11.0 Issue or pull request that will be included in release 11.11.0 label Jan 27, 2024
@gauthierpetetin gauthierpetetin added the team-extension-platform Extension Platform team label Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.11.0 Issue or pull request that will be included in release 11.11.0 team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants