Skip to content
Toby edited this page Dec 10, 2022 · 6 revisions

Server return types, from Backend to Frontend

export type Book = {
  id: number
  title: string
  image_covers: {
    uri:string
}[]
  price: number

  posted: string
  user_id: number
}

export type BookDetails = Book & {
  description?: string
  bookCondition: string
  location: string
  views: number
}


export type User = {
  id: number
  username: string
  avatar: {
    uri:string
}
  location: string
  rated: number
}

Clone this wiki locally