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,