summaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-24 15:03:41 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-24 15:09:38 +0100
commita35f1a9c2564557aea9bca4abb8db5f820a7ad79 (patch)
tree7f5778231988410883e5899b050043b2cd40a84b /src/ts
parent57ea3b5afcd60fb129396afb4946d9f1013fb291 (diff)
build: add a typescript declaration file for MDX
I need to inform Typescript than I am exporting a meta constant from MDX files.
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/app.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts
index e1d8917..a8c552d 100644
--- a/src/ts/types/app.ts
+++ b/src/ts/types/app.ts
@@ -83,6 +83,12 @@ export type Heading = {
title: string;
};
+export type Meta = {
+ title: string;
+ publishedOn: string;
+ updatedOn: string;
+};
+
export type PageInfo = {
endCursor: string;
hasNextPage: boolean;