Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[react] Port ElementRef utility type from Flow (#43201)
* [react] Port ElementRef utility type from Flow https://flow.org/en/docs/react/types/#toc-react-elementref * [react] Use least amount of required typing * [react] Support forwarded refs with ElementRef * [react] Use correct function component return type * [react] Add ElementRef test for memoized ref forwarding component * [react] Add ElementRef test for lazy component * [react] Match function components with props * [react] Fix test-case by moving type around * [react] Fix flaky test-case * [recharts] Remove deprecated CSS properties These have been removed from `lib.dom.d.ts`: https://github.com/microsoft/TypeScript/pull/37464/files#r395692943
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters