Migrate actions,reducers and action types to TS #15
This commit is contained in:
26
app/reducers/circles/CircleState.ts
Normal file
26
app/reducers/circles/CircleState.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Circle } from "domain/circles";
|
||||
|
||||
/**
|
||||
* Circle state
|
||||
*
|
||||
* @export
|
||||
* @class CircleState
|
||||
*/
|
||||
export class CircleState {
|
||||
|
||||
/**
|
||||
* The list of Circles belong to users
|
||||
*
|
||||
* @type {({[userId: string]: {[circleId: string]: Circle}} | null)}
|
||||
* @memberof CircleState
|
||||
*/
|
||||
userCircles: {[userId: string]: {[circleId: string]: Circle}} = {};
|
||||
|
||||
/**
|
||||
* If user circles are loaded {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof CircleState
|
||||
*/
|
||||
loaded: Boolean = false;
|
||||
}
|
||||
Reference in New Issue
Block a user