From 127fea1dfd7fb1db040f4ed0d6c2459ec8c7cfb4 Mon Sep 17 00:00:00 2001 From: James Collins Date: Fri, 17 Feb 2023 14:19:48 +1000 Subject: [PATCH] improve type safety on ApiResponse.data --- resources/js/helpers/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/helpers/api.ts b/resources/js/helpers/api.ts index 9b0e5e5..ec4e6b7 100644 --- a/resources/js/helpers/api.ts +++ b/resources/js/helpers/api.ts @@ -21,7 +21,7 @@ interface ApiOptions { interface ApiResponse { status: number; message: string; - data: object; + data: { [key: string]: unknown }; } const apiDefaultHeaders = {