Skip to content
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

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Update index.d.ts #44

merged 2 commits into from
Oct 13, 2023

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
4 checks passed
@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.

2 participants