File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { ElementType } from 'react' ;
2
+ import type { NextConfig } from 'next' ;
2
3
import type { Config , RenderableTreeNodes , Schema } from '@markdoc/markdoc' ;
4
+ import type { RuleSetConditionAbsolute } from 'webpack' ;
3
5
4
6
export type MarkdocNextJsPageProps = {
5
7
markdoc ?: {
@@ -17,3 +19,19 @@ export type MarkdocNextJsSchema<O extends Object = {}> = Schema<
17
19
O & MarkdocNextJsConfig ,
18
20
ElementType
19
21
> ;
22
+
23
+ export interface MarkdocNextJsOptions {
24
+ extension ?: RuleSetConditionAbsolute ;
25
+ mode ?: 'static' | 'server' ;
26
+ options ?: {
27
+ slots ?: boolean ;
28
+ allowComments ?: boolean ;
29
+ } ;
30
+ schemaPath ?: string ;
31
+ }
32
+
33
+ declare function createMarkdocPlugin (
34
+ options ?: MarkdocNextJsOptions
35
+ ) : ( config : NextConfig ) => NextConfig ;
36
+
37
+ export default createMarkdocPlugin ;
You can’t perform that action at this time.
0 commit comments