Skip to content

Commit e72b11d

Browse files
authored
Update index.d.ts (#44)
* update index.d.ts * updates
1 parent 1655f82 commit e72b11d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type {ElementType} from 'react';
2+
import type {NextConfig} from 'next';
23
import type {Config, RenderableTreeNodes, Schema} from '@markdoc/markdoc';
4+
import type {RuleSetConditionAbsolute} from 'webpack';
35

46
export type MarkdocNextJsPageProps = {
57
markdoc?: {
@@ -17,3 +19,19 @@ export type MarkdocNextJsSchema<O extends Object = {}> = Schema<
1719
O & MarkdocNextJsConfig,
1820
ElementType
1921
>;
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;

0 commit comments

Comments
 (0)