From 015df51cf9a8c9fd671dc19fc328a7cd62e01d31 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Thu, 22 Aug 2024 10:32:17 +0200 Subject: [PATCH] Add type annotations and import missing dependencies Added type annotations to CustomMarkdocTags to ensure type safety. Also, included missing imports for Schema and block, improving the integrity of the file. --- packages/cms/keystatic/src/custom-components.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cms/keystatic/src/custom-components.tsx b/packages/cms/keystatic/src/custom-components.tsx index 976c48dbd..be0e1ba83 100644 --- a/packages/cms/keystatic/src/custom-components.tsx +++ b/packages/cms/keystatic/src/custom-components.tsx @@ -1,3 +1,5 @@ +import type { Schema } from '@markdoc/markdoc'; + /** * @name CustomMarkdocComponents * @description Custom components for Markdoc. Please define your custom components here. @@ -24,9 +26,10 @@ export const CustomMarkdocComponents: Record< * export const CustomMarkdocTags = { * youtube: { * render: "Youtube", + * selfClosing: true, * } * } */ -export const CustomMarkdocTags = { +export const CustomMarkdocTags: Record = { // define your custom tags here };