From caffbb6c459344566033b33a7599bfde5b7903c4 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 20 Feb 2023 19:45:22 +1000 Subject: [PATCH] updated --- resources/js/helpers/api.types.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/resources/js/helpers/api.types.ts b/resources/js/helpers/api.types.ts index 351a988..78e5000 100644 --- a/resources/js/helpers/api.types.ts +++ b/resources/js/helpers/api.types.ts @@ -14,3 +14,33 @@ export interface ApiMediaItem { export interface ApiMedia { medium: ApiMediaItem; } + +export interface ApiPostItem { + title: string; + slug: string; + user_id: string; + content: string; + publish_at: string; + hero: string; +} + +export interface ApiCollectionPost { + post: ApiPostItem; +} + +export interface ApiCollectionPosts { + posts: Array; +} + +export interface ApiUser { + id: string; + username: string; +} + +export interface ApiCollectionUser { + user: ApiUser; +} + +export interface ApiCollectionUsers { + users: Array; +}