@@ -280,19 +280,25 @@ function connect<
280
280
State = DefaultRootState
281
281
> (
282
282
mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State >
283
- ) : InferableComponentEnhancerWithProps < TStateProps & DispatchProp , TOwnProps >
283
+ ) : InferableComponentEnhancerWithProps <
284
+ TStateProps & DispatchProp ,
285
+ TOwnProps & ConnectProps
286
+ >
284
287
285
288
/* @public */
286
289
function connect < no_state = { } , TDispatchProps = { } , TOwnProps = { } > (
287
290
mapStateToProps : null | undefined ,
288
291
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps >
289
- ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps >
292
+ ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps & ConnectProps >
290
293
291
294
/* @public */
292
295
function connect < no_state = { } , TDispatchProps = { } , TOwnProps = { } > (
293
296
mapStateToProps : null | undefined ,
294
297
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps >
295
- ) : InferableComponentEnhancerWithProps < ResolveThunks < TDispatchProps > , TOwnProps >
298
+ ) : InferableComponentEnhancerWithProps <
299
+ ResolveThunks < TDispatchProps > ,
300
+ TOwnProps & ConnectProps
301
+ >
296
302
297
303
/* @public */
298
304
function connect <
@@ -303,7 +309,10 @@ function connect<
303
309
> (
304
310
mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State > ,
305
311
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps >
306
- ) : InferableComponentEnhancerWithProps < TStateProps & TDispatchProps , TOwnProps >
312
+ ) : InferableComponentEnhancerWithProps <
313
+ TStateProps & TDispatchProps ,
314
+ TOwnProps & ConnectProps
315
+ >
307
316
308
317
/* @public */
309
318
function connect <
@@ -316,7 +325,7 @@ function connect<
316
325
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps >
317
326
) : InferableComponentEnhancerWithProps <
318
327
TStateProps & ResolveThunks < TDispatchProps > ,
319
- TOwnProps
328
+ TOwnProps & ConnectProps
320
329
>
321
330
322
331
/* @public */
@@ -329,7 +338,7 @@ function connect<
329
338
mapStateToProps : null | undefined ,
330
339
mapDispatchToProps : null | undefined ,
331
340
mergeProps : MergeProps < undefined , undefined , TOwnProps , TMergedProps >
332
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
341
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
333
342
334
343
/* @public */
335
344
function connect <
@@ -342,7 +351,7 @@ function connect<
342
351
mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State > ,
343
352
mapDispatchToProps : null | undefined ,
344
353
mergeProps : MergeProps < TStateProps , undefined , TOwnProps , TMergedProps >
345
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
354
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
346
355
347
356
/* @public */
348
357
function connect <
@@ -354,7 +363,7 @@ function connect<
354
363
mapStateToProps : null | undefined ,
355
364
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
356
365
mergeProps : MergeProps < undefined , TDispatchProps , TOwnProps , TMergedProps >
357
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
366
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
358
367
359
368
/* @public */
360
369
// @ts -ignore
@@ -368,23 +377,29 @@ function connect<
368
377
mapDispatchToProps : null | undefined ,
369
378
mergeProps : null | undefined ,
370
379
options : ConnectOptions < State , TStateProps , TOwnProps >
371
- ) : InferableComponentEnhancerWithProps < DispatchProp & TStateProps , TOwnProps >
380
+ ) : InferableComponentEnhancerWithProps <
381
+ DispatchProp & TStateProps ,
382
+ TOwnProps & ConnectProps
383
+ >
372
384
373
385
/* @public */
374
386
function connect < TStateProps = { } , TDispatchProps = { } , TOwnProps = { } > (
375
387
mapStateToProps : null | undefined ,
376
388
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps > ,
377
389
mergeProps : null | undefined ,
378
390
options : ConnectOptions < { } , TStateProps , TOwnProps >
379
- ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps >
391
+ ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps & ConnectProps >
380
392
381
393
/* @public */
382
394
function connect < TStateProps = { } , TDispatchProps = { } , TOwnProps = { } > (
383
395
mapStateToProps : null | undefined ,
384
396
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
385
397
mergeProps : null | undefined ,
386
398
options : ConnectOptions < { } , TStateProps , TOwnProps >
387
- ) : InferableComponentEnhancerWithProps < ResolveThunks < TDispatchProps > , TOwnProps >
399
+ ) : InferableComponentEnhancerWithProps <
400
+ ResolveThunks < TDispatchProps > ,
401
+ TOwnProps & ConnectProps
402
+ >
388
403
389
404
/* @public */
390
405
function connect <
@@ -397,7 +412,10 @@ function connect<
397
412
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps > ,
398
413
mergeProps : null | undefined ,
399
414
options : ConnectOptions < State , TStateProps , TOwnProps >
400
- ) : InferableComponentEnhancerWithProps < TStateProps & TDispatchProps , TOwnProps >
415
+ ) : InferableComponentEnhancerWithProps <
416
+ TStateProps & TDispatchProps ,
417
+ TOwnProps & ConnectProps
418
+ >
401
419
402
420
/* @public */
403
421
function connect <
@@ -412,7 +430,7 @@ function connect<
412
430
options : ConnectOptions < State , TStateProps , TOwnProps >
413
431
) : InferableComponentEnhancerWithProps <
414
432
TStateProps & ResolveThunks < TDispatchProps > ,
415
- TOwnProps
433
+ TOwnProps & ConnectProps
416
434
>
417
435
418
436
/* @public */
@@ -427,7 +445,7 @@ function connect<
427
445
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
428
446
mergeProps : MergeProps < TStateProps , TDispatchProps , TOwnProps , TMergedProps > ,
429
447
options ?: ConnectOptions < State , TStateProps , TOwnProps , TMergedProps >
430
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
448
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
431
449
432
450
/**
433
451
* Connects a React component to a Redux store.
0 commit comments