improve type safety on ApiResponse.data
This commit is contained in:
@@ -21,7 +21,7 @@ interface ApiOptions {
|
||||
interface ApiResponse {
|
||||
status: number;
|
||||
message: string;
|
||||
data: object;
|
||||
data: { [key: string]: unknown };
|
||||
}
|
||||
|
||||
const apiDefaultHeaders = {
|
||||
|
||||
Reference in New Issue
Block a user