dillon1000/react
Commit
Browse files Improve Flow coverage by reducing typecasts through `any`
There are many unnecessary typecasts through `any` which
break the Flow of types across the program.
It's more bulletproof to avoid lying to ourselves about types.
Also fixed sketchy null check where zero ID would be skipped:
```diff
- } else if (selectedElementID) {
+ } else if (selectedElementID !== null) {
```Changed paths7 files
First-parent comparisonsrc/devtools/store.js ModifiedM src/devtools/views/Profiler/ChartNode.js ModifiedM src/devtools/views/Profiler/CommitFlamegraphListItem.js ModifiedM src/devtools/views/Profiler/FilterModal.js ModifiedM src/devtools/views/Profiler/ProfilerContext.js ModifiedM src/devtools/views/Profiler/utils.js ModifiedM src/devtools/views/hooks.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…