diff --git a/packages/integrations/markdoc/src/vite-plugin-config.ts b/packages/integrations/markdoc/src/vite-plugin-config.ts index 03ba1c9f1..58d920fff 100644 --- a/packages/integrations/markdoc/src/vite-plugin-config.ts +++ b/packages/integrations/markdoc/src/vite-plugin-config.ts @@ -2,8 +2,7 @@ import type { AstroConfig } from 'astro'; import type { Plugin } from 'vite'; import type { PluginContext } from 'rollup'; import { loadMarkdocConfig } from './load-config.js'; -import type { AstroMarkdocConfig } from './config.js'; -import type { Schema } from '@markdoc/markdoc'; +import type { Schema, Config as MarkdocConfig } from '@markdoc/markdoc'; import type { Render } from './config.js'; import { setupConfig } from './runtime.js'; @@ -58,7 +57,7 @@ export function vitePluginMarkdocConfig({ astroConfig }: { astroConfig: AstroCon }; } -function getRenderUrlMap(tagsOrNodes: Record>) { +function getRenderUrlMap(tagsOrNodes: Record>) { const renderPathnameMap: Record = {}; for (const [name, value] of Object.entries(tagsOrNodes)) { if (value.render instanceof URL) {