Migrate actions,reducers and action types to TS #15
This commit is contained in:
25
app/reducers/posts/PostState.ts
Normal file
25
app/reducers/posts/PostState.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
/**
|
||||
* Post state
|
||||
*
|
||||
* @export
|
||||
* @class PostState
|
||||
*/
|
||||
export class PostState {
|
||||
|
||||
/**
|
||||
* The list of user posts
|
||||
*
|
||||
* @type {*}
|
||||
* @memberof PostState
|
||||
*/
|
||||
userPosts: any = {};
|
||||
|
||||
/**
|
||||
* If user posts are loaded {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof PostState
|
||||
*/
|
||||
loaded: Boolean = false;
|
||||
}
|
||||
Reference in New Issue
Block a user