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; +}