File tree 2 files changed +4
-2
lines changed
packages/integrations/markdoc
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { AstroIntegration } from 'astro' ;
2
2
import type { InlineConfig } from 'vite' ;
3
+ import type { Config as _MarkdocConfig } from '@markdoc/markdoc' ;
3
4
import _Markdoc from '@markdoc/markdoc' ;
4
5
import { parseFrontmatter } from './utils.js' ;
5
6
import { fileURLToPath } from 'node:url' ;
@@ -48,3 +49,4 @@ export default function markdoc(): AstroIntegration {
48
49
}
49
50
50
51
export const Markdoc = _Markdoc ;
52
+ export type MarkdocConfig = _MarkdocConfig ;
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ declare module 'astro:content' {
5
5
component : import ( 'astro' ) . ComponentInstance [ 'default' ] ;
6
6
props ?( params : {
7
7
attributes : Record < string , any > ;
8
- getTreeNode ( ) : import ( '@astrojs/markdoc' ) . Markdoc . Tag ;
8
+ getTreeNode ( ) : typeof import ( '@astrojs/markdoc' ) . Markdoc . Tag ;
9
9
} ) : Record < string , any > ;
10
10
} ;
11
11
12
12
interface Render {
13
13
'.mdoc' : Promise < {
14
14
Content ( props : {
15
- config ?: import ( '@astrojs/markdoc' ) . Markdoc . Config ;
15
+ config ?: import ( '@astrojs/markdoc' ) . MarkdocConfig ;
16
16
components ?: Record < string , ComponentRenderer > ;
17
17
} ) : import ( 'astro' ) . MarkdownInstance < { } > [ 'Content' ] ;
18
18
} > ;
You can’t perform that action at this time.
0 commit comments