From 4c959cf16dccf3a986c3fd70b5ec5fed02458762 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 10 Feb 2023 09:18:27 -0500 Subject: [PATCH] chore: remove content-types. Too early! --- .../integrations/markdoc/content-types.d.ts | 19 ------------------- packages/integrations/markdoc/package.json | 1 - packages/integrations/markdoc/tsconfig.json | 2 +- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 packages/integrations/markdoc/content-types.d.ts diff --git a/packages/integrations/markdoc/content-types.d.ts b/packages/integrations/markdoc/content-types.d.ts deleted file mode 100644 index cd8d7be30..000000000 --- a/packages/integrations/markdoc/content-types.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -declare module 'astro:content' { - type ComponentRenderer = - | JSX.Element - | { - component: JSX.Element; - props?(params: { - attributes: Record; - getTreeNode(): import('@markdoc/markdoc').Tag; - }): Record; - }; - interface Render { - '.mdoc': { - Content(props: { - components: Record; - config: import('@markdoc/markdoc').Config; - }): Promise; - }; - } -} diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index 41e5fc86f..9c1705e67 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -21,7 +21,6 @@ "exports": { ".": "./dist/index.js", "./components": "./components/index.ts", - "./content-types": "./content-types.d.ts", "./package.json": "./package.json" }, "scripts": { diff --git a/packages/integrations/markdoc/tsconfig.json b/packages/integrations/markdoc/tsconfig.json index b598ea9e2..44baf375c 100644 --- a/packages/integrations/markdoc/tsconfig.json +++ b/packages/integrations/markdoc/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../../tsconfig.base.json", - "include": ["src", "content-types.d.ts"], + "include": ["src"], "compilerOptions": { "allowJs": true, "module": "ES2020",