Advertisement
Guest User

Untitled

a guest
Oct 28th, 2022
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export type Post = {
  2.   attributes: {
  3.     content: string;
  4.     createdAt: string;
  5.     description: string;
  6.     postPublishedAt: string;
  7.     publishedAt: string;
  8.     title: string;
  9.     updatedAt: string;
  10.   };
  11.   id: number;
  12. };
  13.  
  14. export type StandalonePost = {
  15.   data: Post;
  16.   meta: Record<string, never>;
  17. };
  18.  
  19. export type Posts = {
  20.   data: Posts[];
  21.   meta: {
  22.     pagination: {
  23.       page: number;
  24.       pageCount: number;
  25.       pageSize: number;
  26.       total: number;
  27.     };
  28.   };
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement