Migrate actions,reducers and action types to TS #15
This commit is contained in:
27
app/reducers/comments/CommentState.ts
Normal file
27
app/reducers/comments/CommentState.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
import { Comment } from "domain/comments";
|
||||
|
||||
/**
|
||||
* Comment state
|
||||
*
|
||||
* @export
|
||||
* @class CommentState
|
||||
*/
|
||||
export class CommentState {
|
||||
|
||||
/**
|
||||
* The list of comments on the posts
|
||||
*
|
||||
* @type {({[postId: string]: {[commentId: string]: Comment}} | null)}
|
||||
* @memberof CommentState
|
||||
*/
|
||||
postComments: {[postId: string]: {[commentId: string]: Comment}} = {};
|
||||
|
||||
/**
|
||||
* If the comments are loaded {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof CommentState
|
||||
*/
|
||||
loaded: Boolean = false;
|
||||
}
|
||||
Reference in New Issue
Block a user