dillon1000/react

Commit

Remove keyMirror in ReactPropTypeLocations (#7592)

This one involves a bit more work as I added "phantom" flow types to a bunch of places where the type is a ReactPropTypeLocations even though those files are not `@flow` yet.

A good side effect is that `ReactPropTypeLocationNames` keys are now correctly typed, this means that they cannot go out of sync without breaking flow :)
Browse files
Changed paths9 files
First-parent comparison
M src/addons/link/__tests__/ReactLinkPropTypes-test.js ModifiedM src/isomorphic/classic/class/ReactClass.js ModifiedM src/isomorphic/classic/element/ReactElementValidator.js ModifiedM src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js ModifiedM src/renderers/dom/client/wrappers/LinkedValueUtils.js ModifiedM src/renderers/shared/stack/reconciler/ReactCompositeComponent.js ModifiedM src/shared/types/ReactPropTypeLocationNames.js ModifiedM src/shared/types/ReactPropTypeLocations.js ModifiedM src/shared/types/checkReactTypeSpec.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…