Files
project-manager/web/src/types.ts
T

33 lines
582 B
TypeScript
Raw Normal View History

export interface User {
id: number
email: string
email_verified: boolean
email_verified_at: string | null
created_at: string | null
}
export interface AuthResponse {
user: User
token: string
expires_at: string
}
export interface TodoList {
id: number
title: string
description: string
owner_id: number
item_count: number
completed_count: number
created_at: string
updated_at: string
}
/** Shape of every error body returned by the API. */
export interface ApiErrorBody {
error: {
message: string
details?: Record<string, string[]>
}
}