index.community/frontend/src/redux/types.ts

26 lines
490 B
TypeScript
Raw Normal View History

2018-08-27 15:27:09 +00:00
export enum ActionType {
SELECT_INSTANCE = 'SELECT_INSTANCE',
REQUEST_INSTANCES = 'REQUEST_INSTANCES',
RECEIVE_INSTANCES = 'RECEIVE_INSTANCES',
}
export interface IAction {
type: ActionType,
payload: any,
}
export interface IInstance {
name: string,
numUsers?: number,
}
export interface IDataState {
instances?: IInstance[],
isLoadingInstances: boolean,
}
export interface IAppState {
currentInstanceName: string | null,
2018-08-27 15:27:09 +00:00
data: IDataState,
2018-08-29 00:17:08 +00:00
}