mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Created StoresList type.
This commit is contained in:
committed by
GitHub
parent
ababb9cd46
commit
91c1355890
Vendored
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user