From 26ea658f9cf4fbc8bb181b33867f43dcea3214c8 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 10 Apr 2023 14:49:13 +1000 Subject: [PATCH] updated types --- resources/js/helpers/api.types.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/js/helpers/api.types.ts b/resources/js/helpers/api.types.ts index 39a510a..be749a0 100644 --- a/resources/js/helpers/api.types.ts +++ b/resources/js/helpers/api.types.ts @@ -1,7 +1,7 @@ export interface Event { id: string; title: string; - hero: string; + hero: Media; content: string; start_at: string; end_at: string; @@ -33,7 +33,10 @@ export interface Media { mime: string; permission: Array; size: number; + status: string; url: string; + description: string; + variants: { [key: string]: string }; created_at: string; updated_at: string; } @@ -52,9 +55,10 @@ export interface Post { title: string; slug: string; user_id: string; + user: User; content: string; publish_at: string; - hero: string; + hero: Media; attachments: Array; }