@@ -129,13 +129,13 @@ Chunk.prototype.then = function <T>(
129129 case BLOCKED :
130130 if ( resolve ) {
131131 if ( chunk . value === null ) {
132- chunk . value = [ ] ;
132+ chunk . value = ( [ ] : Array < ( T ) => mixed > ) ;
133133 }
134134 chunk . value . push ( resolve ) ;
135135 }
136136 if ( reject ) {
137137 if ( chunk . reason === null ) {
138- chunk . reason = [ ] ;
138+ chunk . reason = ( [ ] : Array < ( mixed ) => mixed > ) ;
139139 }
140140 chunk . reason . push ( reject ) ;
141141 }
@@ -435,7 +435,7 @@ function createModelResolver<T>(
435435 chunk: SomeChunk< T > ,
436436 parentObject: Object,
437437 key: string,
438- ) {
438+ ): (value: any) = > void {
439439 let blocked ;
440440 if ( initializingChunkBlockedModel ) {
441441 blocked = initializingChunkBlockedModel ;
@@ -446,7 +446,6 @@ function createModelResolver<T>(
446446 value : null ,
447447 } ;
448448 }
449- // $FlowFixMe[missing-local-annot]
450449 return value => {
451450 parentObject [ key ] = value ;
452451 blocked . deps -- ;
@@ -465,7 +464,7 @@ function createModelResolver<T>(
465464 } ;
466465}
467466
468- function createModelReject< T > (chunk: SomeChunk< T > ) {
467+ function createModelReject< T > (chunk: SomeChunk< T > ): (error: mixed) = > void {
469468 return ( error : mixed ) = > triggerErrorOnChunk ( chunk , error ) ;
470469}
471470
@@ -583,7 +582,7 @@ export function resolveModule(
583582 const chunks = response . _chunks ;
584583 const chunk = chunks . get ( id ) ;
585584 const moduleMetaData : ModuleMetaData = parseModel ( response , model ) ;
586- const moduleReference = resolveClientReference (
585+ const moduleReference = resolveClientReference < $FlowFixMe > (
587586 response . _bundlerConfig ,
588587 moduleMetaData ,
589588 ) ;
0 commit comments