File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 63
63
"eslint-plugin-react-internal" : " link:./scripts/eslint-rules" ,
64
64
"fbjs-scripts" : " ^3.0.1" ,
65
65
"filesize" : " ^6.0.1" ,
66
- "flow-bin" : " ^0.233 .0" ,
67
- "flow-remove-types" : " ^2.233 .0" ,
66
+ "flow-bin" : " ^0.234 .0" ,
67
+ "flow-remove-types" : " ^2.234 .0" ,
68
68
"glob" : " ^7.1.6" ,
69
69
"glob-stream" : " ^6.1.0" ,
70
70
"google-closure-compiler" : " ^20230206.0.0" ,
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ export function trackUsedThenable<T>(
214
214
}
215
215
216
216
// Check one more time in case the thenable resolved synchronously.
217
- switch ( thenable . status ) {
217
+ switch ( ( thenable as Thenable < T > ) . status ) {
218
218
case 'fulfilled ': {
219
219
const fulfilledThenable : FulfilledThenable < T > = ( thenable : any ) ;
220
220
return fulfilledThenable . value ;
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function trackUsedThenable<T>(
107
107
}
108
108
109
109
// Check one more time in case the thenable resolved synchronously
110
- switch ( thenable . status ) {
110
+ switch ( ( thenable as Thenable < T > ) .status) {
111
111
case 'fulfilled' : {
112
112
const fulfilledThenable : FulfilledThenable < T > = ( thenable : any ) ;
113
113
return fulfilledThenable . value ;
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function trackUsedThenable<T>(
107
107
}
108
108
109
109
// Check one more time in case the thenable resolved synchronously
110
- switch ( thenable . status ) {
110
+ switch ( ( thenable as Thenable < T > ) .status) {
111
111
case 'fulfilled' : {
112
112
const fulfilledThenable : FulfilledThenable < T > = ( thenable : any ) ;
113
113
return fulfilledThenable . value ;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ function resolveThenable<T>(thenable: Thenable<T>): T {
127
127
}
128
128
129
129
// Check one more time in case the thenable resolved synchronously.
130
- switch ( thenable . status ) {
130
+ switch ( ( thenable as Thenable < T > ) .status) {
131
131
case 'fulfilled' : {
132
132
const fulfilledThenable : FulfilledThenable < T > = ( thenable : any ) ;
133
133
return fulfilledThenable . value ;
Original file line number Diff line number Diff line change @@ -61,15 +61,15 @@ function lazyInitializer<T>(payload: Payload<T>): T {
61
61
// end up fixing it if the resolution was a concurrency bug.
62
62
thenable . then (
63
63
moduleObject => {
64
- if ( payload . _status === Pending || payload . _status === Uninitialized ) {
64
+ if ( ( payload as Payload < T > ) . _status === Pending || payload . _status === Uninitialized ) {
65
65
// Transition to the next state.
66
66
const resolved : ResolvedPayload < T > = (payload: any);
67
67
resolved._status = Resolved;
68
68
resolved._result = moduleObject;
69
69
}
70
70
} ,
71
71
error => {
72
- if ( payload . _status === Pending || payload . _status === Uninitialized ) {
72
+ if ( ( payload as Payload < T > ) . _status === Pending || payload . _status === Uninitialized ) {
73
73
// Transition to the next state.
74
74
const rejected : RejectedPayload = ( payload : any ) ;
75
75
rejected . _status = Rejected ;
Original file line number Diff line number Diff line change @@ -8320,12 +8320,12 @@ flatted@^3.2.9:
8320
8320
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
8321
8321
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
8322
8322
8323
- flow-bin@^0.233.2 :
8324
- version "0.233 .0"
8325
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.233 .0.tgz#e31951c81d3ec590e1cbfd96e540f6dd2459554c "
8326
- integrity sha512-BInTgW8v6xdWzVcItgKKUYCacheMw78Xrrn0Ziii5lN+vf/RKmvVX9mFHuOSN1zawZuq7GpqmT6oIS/oQuOAQg ==
8323
+ flow-bin@^0.234.0 :
8324
+ version "0.234 .0"
8325
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.234 .0.tgz#17dfc5aac1d928b6d7194f93bd0bf742d735c77d "
8326
+ integrity sha512-uLmvfFRW6yEcz2wSJ2H6192RwknBpzAHBezDcXzmxJASxB6QzjKadhPxZvsJ74uJ+9Th1hDNuRB4mGrVUeneyA ==
8327
8327
8328
- flow-remove-types@^2.233.2 :
8328
+ flow-remove-types@^2.234.0 :
8329
8329
version "2.238.2"
8330
8330
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.238.2.tgz#85c9d26e83ba395f0206a23bce438223bc035609"
8331
8331
integrity sha512-WJXRomjPiZ34nG14y7AceoPxg1L00FxjPSA3TDBTG2OPt8QFNtiYEmO4/3WG58n3C4wjxyVuoE6KjxQIvCDyjw==
You can’t perform that action at this time.
0 commit comments