@@ -129,13 +129,13 @@ Chunk.prototype.then = function <T>(
129
129
case BLOCKED :
130
130
if ( resolve ) {
131
131
if ( chunk . value === null ) {
132
- chunk . value = [ ] ;
132
+ chunk . value = ( [ ] : Array < ( T ) => mixed > ) ;
133
133
}
134
134
chunk . value . push ( resolve ) ;
135
135
}
136
136
if ( reject ) {
137
137
if ( chunk . reason === null ) {
138
- chunk . reason = [ ] ;
138
+ chunk . reason = ( [ ] : Array < ( mixed ) => mixed > ) ;
139
139
}
140
140
chunk . reason . push ( reject ) ;
141
141
}
@@ -435,7 +435,7 @@ function createModelResolver<T>(
435
435
chunk: SomeChunk< T > ,
436
436
parentObject: Object,
437
437
key: string,
438
- ) {
438
+ ): (value: any) = > void {
439
439
let blocked ;
440
440
if ( initializingChunkBlockedModel ) {
441
441
blocked = initializingChunkBlockedModel ;
@@ -446,7 +446,6 @@ function createModelResolver<T>(
446
446
value : null ,
447
447
} ;
448
448
}
449
- // $FlowFixMe[missing-local-annot]
450
449
return value => {
451
450
parentObject [ key ] = value ;
452
451
blocked . deps -- ;
@@ -465,7 +464,7 @@ function createModelResolver<T>(
465
464
} ;
466
465
}
467
466
468
- function createModelReject< T > (chunk: SomeChunk< T > ) {
467
+ function createModelReject< T > (chunk: SomeChunk< T > ): (error: mixed) = > void {
469
468
return ( error : mixed ) = > triggerErrorOnChunk ( chunk , error ) ;
470
469
}
471
470
@@ -583,7 +582,7 @@ export function resolveModule(
583
582
const chunks = response . _chunks ;
584
583
const chunk = chunks . get ( id ) ;
585
584
const moduleMetaData : ModuleMetaData = parseModel ( response , model ) ;
586
- const moduleReference = resolveClientReference (
585
+ const moduleReference = resolveClientReference < $FlowFixMe > (
587
586
response . _bundlerConfig ,
588
587
moduleMetaData ,
589
588
) ;
0 commit comments