-
Notifications
You must be signed in to change notification settings - Fork 30
Update index.d.ts #44
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
Conversation
|
Hey @stefanprobst, does this work for your use case? |
src/index.d.ts
Outdated
| @@ -1,5 +1,7 @@ | |||
| import {NextConfig} from 'next'; | |||
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.
| import {NextConfig} from 'next'; | |
| import type {NextConfig} from 'next'; |
src/index.d.ts
Outdated
| options?: MarkdocNextJsOptions | ||
| ): (config: NextConfig) => NextConfig; | ||
|
|
||
| export = createMarkdocPlugin; |
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.
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try export default instead
|
Thanks for the review @stefanprobst! I really appreciate it. Made the updates you suggested—lmk what you think. |
stefanprobst
left a comment
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.
LGTM 👍
checked in a vanilla create-next-app and in my own project.
|
@mfix-stripe when do you plan to release this? |
|
Thanks for the nudge @stefanprobst — releasing right now. |
Closes markdoc/markdoc#454