Add Redux and use it for state management

This commit is contained in:
riggraz
2019-09-11 18:30:59 +02:00
parent db4c1445ba
commit 8d9ab0f717
22 changed files with 656 additions and 246 deletions

View File

@@ -2,13 +2,10 @@ interface IPost {
id: number;
title: string;
description?: string;
board_id: number;
post_status_id?: number;
user_id: number;
created_at: string;
// associations
postStatus?: any;
boardId: number;
postStatusId?: number;
userId: number;
createdAt: string;
}
export default IPost;

View File

@@ -0,0 +1,11 @@
interface IPostJSON {
id: number;
title: string;
description?: string;
board_id: number;
post_status_id?: number;
user_id: number;
created_at: string;
}
export default IPostJSON;