diff options
Diffstat (limited to 'src/types/mdx.ts')
| -rw-r--r-- | src/types/mdx.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/types/mdx.ts b/src/types/mdx.ts new file mode 100644 index 0000000..7645ce6 --- /dev/null +++ b/src/types/mdx.ts @@ -0,0 +1,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; +}; |
