From 2a479a6953cc06c7f05bceeef70630bd077db48a Mon Sep 17 00:00:00 2001 From: Daniel Sainati Date: Tue, 15 Jan 2019 13:07:54 -0800 Subject: [PATCH] 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` and `$Subtype` 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 --- .flowconfig | 1 + .flowconfig.android | 1 + flow-typed/npm/prop-types_v15.x.x.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.flowconfig b/.flowconfig index c4ff4b76b..2f4ce316a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -85,6 +85,7 @@ sketchy-null-mixed=warn # This is noisy for now. We *do* still want to warn on importing types # from untyped files, which is covered by untyped-type-import untyped-import=off +deprecated-utility=error [strict] deprecated-type diff --git a/.flowconfig.android b/.flowconfig.android index 53165f2fa..749a1f7b2 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -85,6 +85,7 @@ sketchy-null-mixed=warn # This is noisy for now. We *do* still want to warn on importing types # from untyped files, which is covered by untyped-type-import untyped-import=off +deprecated-utility=error [strict] deprecated-type diff --git a/flow-typed/npm/prop-types_v15.x.x.js b/flow-typed/npm/prop-types_v15.x.x.js index 2e9e16643..59293ad86 100644 --- a/flow-typed/npm/prop-types_v15.x.x.js +++ b/flow-typed/npm/prop-types_v15.x.x.js @@ -38,7 +38,7 @@ declare module 'prop-types' { declare var shape: React$PropType$Shape; declare function checkPropTypes( - propTypes: $Subtype<{[_: $Keys]: $npm$propTypes$ReactPropsCheckType}>, + propTypes: {[_: $Keys]: $npm$propTypes$ReactPropsCheckType}, values: V, location: string, componentName: string,