Created StoresList type.

This commit is contained in:
Giedrius Grabauskas
2017-07-17 12:25:42 +03:00
committed by GitHub
parent ababb9cd46
commit 91c1355890
+3 -1
View File
@@ -37,8 +37,10 @@ export interface RealOptions {
export type ComponentConstructor<TProps> = React.ComponentClass<TProps> | React.StatelessComponent<TProps>;
export type StoresList = Array<FluxStore<any>>;
export interface ComponentStatic<TProps, TState, TContext> {
getStores(maybeProps?: TProps, maybeContext?: TContext): Array<FluxStore<any>>;
getStores(maybeProps?: TProps, maybeContext?: TContext): StoresList;
calculateState(prevState: TState, maybeProps?: TProps, maybeContext?: TContext): TState;
}