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

fix(types): add more overload to defineConfig #18299

Merged

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Oct 8, 2024

Description

fixes #18295

refs #12021, #12077, #13792

Copy link

stackblitz bot commented Oct 8, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sapphi-red
Copy link
Member Author

/ecosystem-ci run

@vite-ecosystem-ci
Copy link

@sapphi-red sapphi-red added the p2-edge-case Bug, but has workaround or limited in scope (priority) label Oct 8, 2024
Comment on lines +29 to +30
ExpectTrue<Equal<typeof configFnPromiseDefined, UserConfigFnPromise>>,
ExpectTrue<Equal<typeof configFnDefined, UserConfigFn>>,
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this PR, these two tests fail.

@patak-dev patak-dev merged commit 94e34cf into vitejs:main Oct 8, 2024
12 checks passed
@sapphi-red sapphi-red deleted the fix/types-define-config-more-overload branch October 8, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-edge-case Bug, but has workaround or limited in scope (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not all constituents of type  UserConfigExport  are callable
2 participants