mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
react-redux: remove React.Props references because it is deprecated.
This commit is contained in:
Vendored
+7
-13
@@ -7,10 +7,10 @@
|
||||
/// <reference path="../redux/redux.d.ts" />
|
||||
|
||||
declare module "react-redux" {
|
||||
import { ComponentClass, Component, StatelessComponent, Props, ReactNode } from 'react';
|
||||
import { ComponentClass, Component, StatelessComponent, ReactNode } from 'react';
|
||||
import { Store, Dispatch, ActionCreator } from 'redux';
|
||||
|
||||
interface ComponentDecorator<TOriginalProps extends Props<any>, TOwnProps extends Props<any>> {
|
||||
interface ComponentDecorator<TOriginalProps, TOwnProps> {
|
||||
(component: ComponentClass<TOriginalProps>): ComponentClass<TOwnProps>;
|
||||
}
|
||||
|
||||
@@ -43,19 +43,13 @@ declare module "react-redux" {
|
||||
* @param options
|
||||
*/
|
||||
export function connect(): InferableComponentDecorator;
|
||||
export function connect<
|
||||
TStateProps extends Props<any>,
|
||||
TDispatchProps extends Props<any>,
|
||||
TOwnProps extends Props<any>
|
||||
>(
|
||||
|
||||
export function connect<TStateProps, TDispatchProps, TOwnProps>(
|
||||
mapStateToProps: MapStateToProps<TStateProps, TOwnProps>,
|
||||
mapDispatchToProps?: MapDispatchToPropsFunction<TDispatchProps, TOwnProps>|MapDispatchToPropsObject
|
||||
): ComponentDecorator<TStateProps & TDispatchProps, TOwnProps>;
|
||||
export function connect<
|
||||
TStateProps extends Props<any>,
|
||||
TDispatchProps extends Props<any>,
|
||||
TOwnProps extends Props<any>
|
||||
>(
|
||||
|
||||
export function connect<TStateProps, TDispatchProps, TOwnProps>(
|
||||
mapStateToProps: MapStateToProps<TStateProps, TOwnProps>,
|
||||
mapDispatchToProps: MapDispatchToPropsFunction<TDispatchProps, TOwnProps>|MapDispatchToPropsObject,
|
||||
mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps>,
|
||||
@@ -89,7 +83,7 @@ declare module "react-redux" {
|
||||
pure: boolean;
|
||||
}
|
||||
|
||||
export interface ProviderProps extends Props<Provider> {
|
||||
export interface ProviderProps {
|
||||
/**
|
||||
* The single Redux store in your application.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user