next.js/examples/cms-cosmic/interfaces/index.ts
index.ts25 lines372 B
export type ImgixType = {
  url: string;
  imgix_url: string;
};

export type AuthorType = {
  title: string;
  metadata: {
    picture: ImgixType;
  };
};

export type PostType = {
  title: string;
  slug: string;
  content: string;
  created_at: string;
  metadata: {
    cover_image: ImgixType;
    author: AuthorType;
    excerpt: string;
    content: string;
  };
};
Quest for Codev2.0.0
/
SIGN IN