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

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

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

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