summaryrefslogtreecommitdiffstats
path: root/src/ts/types/mdx.ts
blob: 7645ce667ed53ea263cb1155d8e0cd79e6d1f1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { StaticImageData } from 'next/image';
import { Meta } from './app';

export type MDXData = {
  file: string;
  image: MDXImage;
};

export type MDXImage = StaticImageData & {
  alt: string;
  title?: string;
};

export type MDXPageMeta = Pick<Meta<'page'>, 'cover' | 'dates' | 'seo'> & {
  intro: string;
  title: string;
};

export type MDXProjectMeta = Exclude<Meta<'project'>, 'wordsCount'> & {
  intro: string;
  title: string;
};