Files
DefinitelyTyped/redux-bootstrap/index.d.ts
Andy 8841dfc744 Use index.d.ts only (not foo/foo.d.ts) (#12834)
* Use index.d.ts only (not foo/foo.d.ts)

* Convert more packages

* Remove unnecessary references
2016-11-21 12:58:06 -08:00

32 lines
928 B
TypeScript

// Type definitions for react-bootstrap v1.0.0
// Project: https://github.com/remojansen/redux-bootstrap
// Definitions by: Remo H. Jansen <https://github.com/remojansen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="redux" />
/// <reference types="react" />
declare module "redux-bootstrap" {
import ReactRouterRedux = require("react-router-redux");
interface BootstrapOptions {
routes: JSX.Element;
reducers: ReducersOption;
middlewares?: Redux.Middleware[];
initialState?: any;
container?: string;
}
interface BootstrapResult {
store: Redux.Store<any>;
history: ReactRouterRedux.ReactRouterReduxHistory;
root: JSX.Element;
}
interface ReducersOption {
[index: string]: Redux.Reducer<any>;
}
export default function bootstrap(options: BootstrapOptions): BootstrapResult;
}