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.
This commit is contained in:
@@ -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<string, Schema> = {
|
||||
// define your custom tags here
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user