dillon1000/react

Commit

Cleanup profile export/import data types, add export/import test

Strengthened the I/O-boundary type conversion logic.

Fixed type inconsistencies uncovered by removing `any` and
by making explicit type annotations and transformations.

In particular, these were likely malformed when restored from a file:
- `commitDetails`
- `interactions`
- `initialTreeBaseDurations`

The mismatches were Map vs interleaved Array.
Browse files
Changed paths17 files
First-parent comparison
M .eslintignore ModifiedM src/__tests__/__snapshots__/profiling-test.js.snap ModifiedM src/__tests__/profiling-test.js ModifiedM src/__tests__/profilingCharts-test.js ModifiedM src/__tests__/setupTests.js ModifiedM src/__tests__/utils.js ModifiedM src/backend/agent.js ModifiedM src/backend/index.js ModifiedM src/backend/renderer.js ModifiedM src/backend/types.js ModifiedM src/devtools/ProfilingCache.js ModifiedM src/devtools/store.js ModifiedM src/devtools/views/Profiler/Interactions.js ModifiedM src/devtools/views/Profiler/ProfilingImportExportButtons.js ModifiedM src/devtools/views/Profiler/SidebarInteractions.js ModifiedM src/devtools/views/Profiler/types.js ModifiedM src/devtools/views/Profiler/utils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…