mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add Redux and use it for state management
This commit is contained in:
@@ -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;
|
||||
11
app/javascript/interfaces/json/IPost.ts
Normal file
11
app/javascript/interfaces/json/IPost.ts
Normal 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;
|
||||
Reference in New Issue
Block a user