SYNC-HP用のサンプル
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

guitars.ts 704B

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export type Guitar = {
  2. id: string
  3. attributes: {
  4. name: string
  5. description: string
  6. price: number
  7. createdAt: number
  8. maker: Maker
  9. status: Status
  10. image: Image
  11. }
  12. }
  13. export type Maker = {
  14. data: {
  15. id: string
  16. attributes: {
  17. name: string
  18. }
  19. }
  20. }
  21. export type Status = {
  22. data: {
  23. id: string
  24. attributes: {
  25. name: string
  26. }
  27. }
  28. }
  29. export type Image = {
  30. data: [
  31. {
  32. id: string
  33. attributes: {
  34. name: string
  35. url: string
  36. }
  37. }
  38. ]
  39. }
  40. export type GuitarResponse = {
  41. guitars: Guitar[]
  42. }