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

22 lines
392 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
}
/** Shape of every error body returned by the API. */
export interface ApiErrorBody {
error: {
message: string
details?: Record<string, string[]>
}
}