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