diff --git a/types/flux/lib/FluxContainer.d.ts b/types/flux/lib/FluxContainer.d.ts index 54b578cc1d..4d49293fa6 100644 --- a/types/flux/lib/FluxContainer.d.ts +++ b/types/flux/lib/FluxContainer.d.ts @@ -37,8 +37,10 @@ export interface RealOptions { export type ComponentConstructor = React.ComponentClass | React.StatelessComponent; +export type StoresList = Array>; + export interface ComponentStatic { - getStores(maybeProps?: TProps, maybeContext?: TContext): Array>; + getStores(maybeProps?: TProps, maybeContext?: TContext): StoresList; calculateState(prevState: TState, maybeProps?: TProps, maybeContext?: TContext): TState; } diff --git a/types/flux/test/FluxUtils.tsx b/types/flux/test/FluxUtils.tsx index 1cd3705fab..38e06e71e4 100644 --- a/types/flux/test/FluxUtils.tsx +++ b/types/flux/test/FluxUtils.tsx @@ -38,7 +38,7 @@ interface State { } class CounterContainer extends React.Component { - static getStores() { + static getStores(): Container.StoresList { return [Store]; }