From 2e28affa930c292563c77d82c57e5749b5bfbd24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 30 Oct 2023 19:03:15 -0400 Subject: [PATCH] Fix type --- src/components/DocumentView/Heading.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DocumentView/Heading.tsx b/src/components/DocumentView/Heading.tsx index f4655fd76..1e79d7fda 100644 --- a/src/components/DocumentView/Heading.tsx +++ b/src/components/DocumentView/Heading.tsx @@ -61,7 +61,7 @@ export function Heading(props: BlockProps) { ); } -const TAGS: { [type in DocumentBlockHeading['type']]: string } = { +const TAGS: { [type in DocumentBlockHeading['type']]: React.ElementType } = { // The h1 is reserved for the page title 'heading-1': 'h2', 'heading-2': 'h3',