From a35f1a9c2564557aea9bca4abb8db5f820a7ad79 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 24 Dec 2021 15:03:41 +0100 Subject: build: add a typescript declaration file for MDX I need to inform Typescript than I am exporting a meta constant from MDX files. --- src/ts/types/app.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3