@@ -264,19 +264,25 @@ function connect<
264264 State = DefaultRootState
265265> (
266266 mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State >
267- ) : InferableComponentEnhancerWithProps < TStateProps & DispatchProp , TOwnProps >
267+ ) : InferableComponentEnhancerWithProps <
268+ TStateProps & DispatchProp ,
269+ TOwnProps & ConnectProps
270+ >
268271
269272/* @public */
270273function connect < no_state = { } , TDispatchProps = { } , TOwnProps = { } > (
271274 mapStateToProps : null | undefined ,
272275 mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps >
273- ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps >
276+ ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps & ConnectProps >
274277
275278/* @public */
276279function connect < no_state = { } , TDispatchProps = { } , TOwnProps = { } > (
277280 mapStateToProps : null | undefined ,
278281 mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps >
279- ) : InferableComponentEnhancerWithProps < ResolveThunks < TDispatchProps > , TOwnProps >
282+ ) : InferableComponentEnhancerWithProps <
283+ ResolveThunks < TDispatchProps > ,
284+ TOwnProps & ConnectProps
285+ >
280286
281287/* @public */
282288function connect <
@@ -287,7 +293,10 @@ function connect<
287293> (
288294 mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State > ,
289295 mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps >
290- ) : InferableComponentEnhancerWithProps < TStateProps & TDispatchProps , TOwnProps >
296+ ) : InferableComponentEnhancerWithProps <
297+ TStateProps & TDispatchProps ,
298+ TOwnProps & ConnectProps
299+ >
291300
292301/* @public */
293302function connect <
@@ -300,7 +309,7 @@ function connect<
300309 mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps >
301310) : InferableComponentEnhancerWithProps <
302311 TStateProps & ResolveThunks < TDispatchProps > ,
303- TOwnProps
312+ TOwnProps & ConnectProps
304313>
305314
306315/* @public */
@@ -313,7 +322,7 @@ function connect<
313322 mapStateToProps : null | undefined ,
314323 mapDispatchToProps : null | undefined ,
315324 mergeProps : MergeProps < undefined , undefined , TOwnProps , TMergedProps >
316- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
325+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
317326
318327/* @public */
319328function connect <
@@ -326,7 +335,7 @@ function connect<
326335 mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State > ,
327336 mapDispatchToProps : null | undefined ,
328337 mergeProps : MergeProps < TStateProps , undefined , TOwnProps , TMergedProps >
329- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
338+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
330339
331340/* @public */
332341function connect <
@@ -338,7 +347,7 @@ function connect<
338347 mapStateToProps : null | undefined ,
339348 mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
340349 mergeProps : MergeProps < undefined , TDispatchProps , TOwnProps , TMergedProps >
341- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
350+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
342351
343352/* @public */
344353// @ts -ignore
@@ -352,23 +361,29 @@ function connect<
352361 mapDispatchToProps : null | undefined ,
353362 mergeProps : null | undefined ,
354363 options : ConnectOptions < State , TStateProps , TOwnProps >
355- ) : InferableComponentEnhancerWithProps < DispatchProp & TStateProps , TOwnProps >
364+ ) : InferableComponentEnhancerWithProps <
365+ DispatchProp & TStateProps ,
366+ TOwnProps & ConnectProps
367+ >
356368
357369/* @public */
358370function connect < TStateProps = { } , TDispatchProps = { } , TOwnProps = { } > (
359371 mapStateToProps : null | undefined ,
360372 mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps > ,
361373 mergeProps : null | undefined ,
362374 options : ConnectOptions < { } , TStateProps , TOwnProps >
363- ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps >
375+ ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps & ConnectProps >
364376
365377/* @public */
366378function connect < TStateProps = { } , TDispatchProps = { } , TOwnProps = { } > (
367379 mapStateToProps : null | undefined ,
368380 mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
369381 mergeProps : null | undefined ,
370382 options : ConnectOptions < { } , TStateProps , TOwnProps >
371- ) : InferableComponentEnhancerWithProps < ResolveThunks < TDispatchProps > , TOwnProps >
383+ ) : InferableComponentEnhancerWithProps <
384+ ResolveThunks < TDispatchProps > ,
385+ TOwnProps & ConnectProps
386+ >
372387
373388/* @public */
374389function connect <
@@ -381,7 +396,10 @@ function connect<
381396 mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps > ,
382397 mergeProps : null | undefined ,
383398 options : ConnectOptions < State , TStateProps , TOwnProps >
384- ) : InferableComponentEnhancerWithProps < TStateProps & TDispatchProps , TOwnProps >
399+ ) : InferableComponentEnhancerWithProps <
400+ TStateProps & TDispatchProps ,
401+ TOwnProps & ConnectProps
402+ >
385403
386404/* @public */
387405function connect <
@@ -396,7 +414,7 @@ function connect<
396414 options : ConnectOptions < State , TStateProps , TOwnProps >
397415) : InferableComponentEnhancerWithProps <
398416 TStateProps & ResolveThunks < TDispatchProps > ,
399- TOwnProps
417+ TOwnProps & ConnectProps
400418>
401419
402420/* @public */
@@ -411,7 +429,7 @@ function connect<
411429 mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
412430 mergeProps : MergeProps < TStateProps , TDispatchProps , TOwnProps , TMergedProps > ,
413431 options ?: ConnectOptions < State , TStateProps , TOwnProps , TMergedProps >
414- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
432+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
415433
416434/**
417435 * Connects a React component to a Redux store.
0 commit comments