remove deprecated utilities

Summary: Remove `$Subtype` and `$Supertype` utilities. Replacement was done on a best-effort basis. In many cases it sufficed to replace `$Supertype<T>` and `$Subtype<T>` with `T`, but when this was not possible `any | T` and `any & T` were used instead.

Reviewed By: jbrown215

Differential Revision: D13624765

fbshipit-source-id: 82ee9d43cfc318ed4bd2d84e0f4c5c1d8f488a9c
This commit is contained in:
Daniel Sainati 2019-01-15 13:07:54 -08:00 committed by Facebook Github Bot
parent deda70726d
commit 011e69c153

View File

@ -26,7 +26,7 @@ declare module 'prop-types' {
declare var shape: React$PropType$Shape;
declare function checkPropTypes<V>(
propTypes: $Subtype<{[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType}>,
propTypes: {[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType},
values: V,
location: string,
componentName: string,