Skip to content

Commit

Permalink
Update index.d.ts (#44)
Browse files Browse the repository at this point in the history
* update index.d.ts

* updates
  • Loading branch information
mfix-stripe authored Oct 13, 2023
1 parent 1655f82 commit e72b11d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type {ElementType} from 'react';
import type {NextConfig} from 'next';
import type {Config, RenderableTreeNodes, Schema} from '@markdoc/markdoc';
import type {RuleSetConditionAbsolute} from 'webpack';

export type MarkdocNextJsPageProps = {
markdoc?: {
Expand All @@ -17,3 +19,19 @@ export type MarkdocNextJsSchema<O extends Object = {}> = Schema<
O & MarkdocNextJsConfig,
ElementType
>;

export interface MarkdocNextJsOptions {
extension?: RuleSetConditionAbsolute;
mode?: 'static' | 'server';
options?: {
slots?: boolean;
allowComments?: boolean;
};
schemaPath?: string;
}

declare function createMarkdocPlugin(
options?: MarkdocNextJsOptions
): (config: NextConfig) => NextConfig;

export default createMarkdocPlugin;

0 comments on commit e72b11d

Please sign in to comment.