aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/mdx.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-03 16:51:22 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-03 16:51:22 +0200
commit83a029084f1bbfd78b7099d9bea3371d4533c6d9 (patch)
treef99854e4cb430ccbdb725cb2e287423f80cb9791 /src/ts/types/mdx.ts
parent732d0943f8041d76262222a092b014f2557085ef (diff)
chore: add a LegalNotice page
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;
+};