Skip to content

Commit 2a479a6

Browse files
Daniel Sainatifacebook-github-bot
authored andcommitted
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
1 parent 7fbccde commit 2a479a6

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ sketchy-null-mixed=warn
8585
# This is noisy for now. We *do* still want to warn on importing types
8686
# from untyped files, which is covered by untyped-type-import
8787
untyped-import=off
88+
deprecated-utility=error
8889

8990
[strict]
9091
deprecated-type

.flowconfig.android

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ sketchy-null-mixed=warn
8585
# This is noisy for now. We *do* still want to warn on importing types
8686
# from untyped files, which is covered by untyped-type-import
8787
untyped-import=off
88+
deprecated-utility=error
8889

8990
[strict]
9091
deprecated-type

flow-typed/npm/prop-types_v15.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare module 'prop-types' {
3838
declare var shape: React$PropType$Shape;
3939

4040
declare function checkPropTypes<V>(
41-
propTypes: $Subtype<{[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType}>,
41+
propTypes: {[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType},
4242
values: V,
4343
location: string,
4444
componentName: string,

0 commit comments

Comments
 (0)