Skip to content

Conversation

@mfix-stripe
Copy link
Contributor

@mfix-stripe
Copy link
Contributor Author

Hey @stefanprobst, does this work for your use case?

src/index.d.ts Outdated
@@ -1,5 +1,7 @@
import {NextConfig} from 'next';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import {NextConfig} from 'next';
import type {NextConfig} from 'next';

src/index.d.ts Outdated
options?: MarkdocNextJsOptions
): (config: NextConfig) => NextConfig;

export = createMarkdocPlugin;

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."

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.

Copy link
Contributor Author

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

@mfix-stripe
Copy link
Contributor Author

Thanks for the review @stefanprobst! I really appreciate it. Made the updates you suggested—lmk what you think.

Copy link

@stefanprobst stefanprobst left a 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 mfix-stripe merged commit e72b11d into main Oct 13, 2023
@mfix-stripe mfix-stripe deleted the mfix/update-index.d.ts branch October 13, 2023 17:52
@stefanprobst
Copy link

@mfix-stripe when do you plan to release this?

@mfix-stripe
Copy link
Contributor Author

Thanks for the nudge @stefanprobst — releasing right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants