Files
DefinitelyTyped/react-redux/react-redux.d.ts
2015-09-24 00:11:48 +09:00

29 lines
722 B
TypeScript

// Type definitions for react-redux 2.1.2
// Project: https://github.com/rackt/react-redux
// Definitions by: Qubo <https://github.com/tkqubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
declare module "react-redux" {
import { Component } from 'react';
export interface ClassDecorator {
<TFunction extends Function>(target: TFunction): TFunction|void;
}
export function connect(...functions: Function[]): ClassDecorator;
export interface Store {
subscribe: Function;
dispatch: Function;
getState: Function;
}
export interface Property {
store: Store;
}
export class Provider extends Component<Property, {}> { }
}