refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-22 21:19:49 +08:00
parent 6427af90ef
commit dae0b80ee0
20 changed files with 81 additions and 88 deletions
+3 -2
View File
@@ -2,8 +2,9 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit";
// import BASE_URL from "../config";
export interface Favorite {
id: number;
messages: any[];
id: string;
created_at?: number;
messages?: any[];
}
const initialState: Favorite[] = [];