aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/mdx.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/ts/types/mdx.ts')
-rw-r--r--src/ts/types/mdx.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ts/types/mdx.ts b/src/ts/types/mdx.ts
new file mode 100644
index 0000000..6b72f21
--- /dev/null
+++ b/src/ts/types/mdx.ts
@@ -0,0 +1,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;
+};