@@ -264,19 +264,25 @@ function connect<
264
264
State = DefaultRootState
265
265
> (
266
266
mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State >
267
- ) : InferableComponentEnhancerWithProps < TStateProps & DispatchProp , TOwnProps >
267
+ ) : InferableComponentEnhancerWithProps <
268
+ TStateProps & DispatchProp ,
269
+ TOwnProps & ConnectProps
270
+ >
268
271
269
272
/* @public */
270
273
function connect < no_state = { } , TDispatchProps = { } , TOwnProps = { } > (
271
274
mapStateToProps : null | undefined ,
272
275
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps >
273
- ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps >
276
+ ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps & ConnectProps >
274
277
275
278
/* @public */
276
279
function connect < no_state = { } , TDispatchProps = { } , TOwnProps = { } > (
277
280
mapStateToProps : null | undefined ,
278
281
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps >
279
- ) : InferableComponentEnhancerWithProps < ResolveThunks < TDispatchProps > , TOwnProps >
282
+ ) : InferableComponentEnhancerWithProps <
283
+ ResolveThunks < TDispatchProps > ,
284
+ TOwnProps & ConnectProps
285
+ >
280
286
281
287
/* @public */
282
288
function connect <
@@ -287,7 +293,10 @@ function connect<
287
293
> (
288
294
mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State > ,
289
295
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps >
290
- ) : InferableComponentEnhancerWithProps < TStateProps & TDispatchProps , TOwnProps >
296
+ ) : InferableComponentEnhancerWithProps <
297
+ TStateProps & TDispatchProps ,
298
+ TOwnProps & ConnectProps
299
+ >
291
300
292
301
/* @public */
293
302
function connect <
@@ -300,7 +309,7 @@ function connect<
300
309
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps >
301
310
) : InferableComponentEnhancerWithProps <
302
311
TStateProps & ResolveThunks < TDispatchProps > ,
303
- TOwnProps
312
+ TOwnProps & ConnectProps
304
313
>
305
314
306
315
/* @public */
@@ -313,7 +322,7 @@ function connect<
313
322
mapStateToProps : null | undefined ,
314
323
mapDispatchToProps : null | undefined ,
315
324
mergeProps : MergeProps < undefined , undefined , TOwnProps , TMergedProps >
316
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
325
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
317
326
318
327
/* @public */
319
328
function connect <
@@ -326,7 +335,7 @@ function connect<
326
335
mapStateToProps : MapStateToPropsParam < TStateProps , TOwnProps , State > ,
327
336
mapDispatchToProps : null | undefined ,
328
337
mergeProps : MergeProps < TStateProps , undefined , TOwnProps , TMergedProps >
329
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
338
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
330
339
331
340
/* @public */
332
341
function connect <
@@ -338,7 +347,7 @@ function connect<
338
347
mapStateToProps : null | undefined ,
339
348
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
340
349
mergeProps : MergeProps < undefined , TDispatchProps , TOwnProps , TMergedProps >
341
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
350
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
342
351
343
352
/* @public */
344
353
// @ts -ignore
@@ -352,23 +361,29 @@ function connect<
352
361
mapDispatchToProps : null | undefined ,
353
362
mergeProps : null | undefined ,
354
363
options : ConnectOptions < State , TStateProps , TOwnProps >
355
- ) : InferableComponentEnhancerWithProps < DispatchProp & TStateProps , TOwnProps >
364
+ ) : InferableComponentEnhancerWithProps <
365
+ DispatchProp & TStateProps ,
366
+ TOwnProps & ConnectProps
367
+ >
356
368
357
369
/* @public */
358
370
function connect < TStateProps = { } , TDispatchProps = { } , TOwnProps = { } > (
359
371
mapStateToProps : null | undefined ,
360
372
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps > ,
361
373
mergeProps : null | undefined ,
362
374
options : ConnectOptions < { } , TStateProps , TOwnProps >
363
- ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps >
375
+ ) : InferableComponentEnhancerWithProps < TDispatchProps , TOwnProps & ConnectProps >
364
376
365
377
/* @public */
366
378
function connect < TStateProps = { } , TDispatchProps = { } , TOwnProps = { } > (
367
379
mapStateToProps : null | undefined ,
368
380
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
369
381
mergeProps : null | undefined ,
370
382
options : ConnectOptions < { } , TStateProps , TOwnProps >
371
- ) : InferableComponentEnhancerWithProps < ResolveThunks < TDispatchProps > , TOwnProps >
383
+ ) : InferableComponentEnhancerWithProps <
384
+ ResolveThunks < TDispatchProps > ,
385
+ TOwnProps & ConnectProps
386
+ >
372
387
373
388
/* @public */
374
389
function connect <
@@ -381,7 +396,10 @@ function connect<
381
396
mapDispatchToProps : MapDispatchToPropsNonObject < TDispatchProps , TOwnProps > ,
382
397
mergeProps : null | undefined ,
383
398
options : ConnectOptions < State , TStateProps , TOwnProps >
384
- ) : InferableComponentEnhancerWithProps < TStateProps & TDispatchProps , TOwnProps >
399
+ ) : InferableComponentEnhancerWithProps <
400
+ TStateProps & TDispatchProps ,
401
+ TOwnProps & ConnectProps
402
+ >
385
403
386
404
/* @public */
387
405
function connect <
@@ -396,7 +414,7 @@ function connect<
396
414
options : ConnectOptions < State , TStateProps , TOwnProps >
397
415
) : InferableComponentEnhancerWithProps <
398
416
TStateProps & ResolveThunks < TDispatchProps > ,
399
- TOwnProps
417
+ TOwnProps & ConnectProps
400
418
>
401
419
402
420
/* @public */
@@ -411,7 +429,7 @@ function connect<
411
429
mapDispatchToProps : MapDispatchToPropsParam < TDispatchProps , TOwnProps > ,
412
430
mergeProps : MergeProps < TStateProps , TDispatchProps , TOwnProps , TMergedProps > ,
413
431
options ?: ConnectOptions < State , TStateProps , TOwnProps , TMergedProps >
414
- ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps >
432
+ ) : InferableComponentEnhancerWithProps < TMergedProps , TOwnProps & ConnectProps >
415
433
416
434
/**
417
435
* Connects a React component to a Redux store.
0 commit comments