Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compose: Add types (progressively)#27344

Closed
sirreal wants to merge 27 commits into
trunkfrom
add/types-compose-v2
Closed

Compose: Add types (progressively)#27344
sirreal wants to merge 27 commits into
trunkfrom
add/types-compose-v2

Conversation

@sirreal

@sirreal sirreal commented Nov 27, 2020

Copy link
Copy Markdown
Member

Description

part of #18838

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

@sirreal sirreal force-pushed the add/types-compose-v2 branch from 9238527 to fcebfd6 Compare February 21, 2021 20:10
This was referenced Feb 22, 2021
Comment thread packages/compose/src/hooks/use-async-list/index.js Outdated

@sarayourfriend sarayourfriend left a comment

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.

Given that we now have native TypeScript support... should we just be re-writing these in TypeScript? It's probably a lot easier to do iteratively (one PR per file/couple of files) and would yield better results in the end.

Comment on lines +98 to +109
/**
* @template R
* @typedef {import('react').ReducerState<R>} ReducerState
*/
/**
* @template R
* @typedef {import('react').ReducerAction<R>} ReducerAction
*/
/**
* @template D
* @typedef {import('react').Dispatch<D>} Dispatch
*/

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.

Do we need these types?

Co-authored-by: sarayourfriend <[email protected]>
Base automatically changed from master to trunk March 1, 2021 15:44
@skorasaurus skorasaurus added the [Package] Compose /packages/compose label Nov 13, 2021
@sirreal sirreal closed this Apr 11, 2023
@sirreal sirreal deleted the add/types-compose-v2 branch April 11, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Compose /packages/compose

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants