mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-10-05 19:07:43 +03:00
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:
parent
deda70726d
commit
011e69c153
2
flow-typed/npm/prop-types_v15.x.x.js
vendored
2
flow-typed/npm/prop-types_v15.x.x.js
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user