From 580caee28a2f9c0cad1a867396f5f1e455fb4576 Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Sun, 1 Aug 2021 17:17:56 -0400 Subject: [PATCH] Add *.talk.mdx declaration --- types.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/types.d.ts b/types.d.ts index bf1c4eef..e79f50d9 100644 --- a/types.d.ts +++ b/types.d.ts @@ -60,6 +60,21 @@ declare module "*.section.mdx" { export default ReactComponent; } +declare module "*.talk.mdx" { + import { ComponentType } from "react"; + + interface TalkMetadata { + name: string; + short: string; + poster?: string; + } + + const ReactComponent: ComponentType; + + export const metadata: TalkMetadata; + export default ReactComponent; +} + declare module "*.mdx" { import { ComponentType } from "react";