-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update index.d.ts #44
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import {NextConfig} from 'next'; | ||
import type {ElementType} from 'react'; | ||
import type {Config, RenderableTreeNodes, Schema} from '@markdoc/markdoc'; | ||
import type {RuleSetConditionAbsolute} from 'webpack'; | ||
|
||
export type MarkdocNextJsPageProps = { | ||
markdoc?: { | ||
|
@@ -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 = createMarkdocPlugin; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm ts says: "TS2309: An export assignment cannot be used in a module with other exported elements." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but it does seem to work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.