Skip to content

fix: remove some of any type annotations in index.ts#63

Merged
FredKSchott merged 5 commits intocloudflare:mainfrom
situ2001:situ/patch-1
Feb 27, 2026
Merged

fix: remove some of any type annotations in index.ts#63
FredKSchott merged 5 commits intocloudflare:mainfrom
situ2001:situ/patch-1

Conversation

@situ2001
Copy link
Copy Markdown
Contributor

No need to add any type, since the types can be inferred from declaration of vite.

@situ2001 situ2001 changed the title refactor: remove some of any type annotations in index.ts fix: remove some of any type annotations in index.ts Feb 25, 2026
@southpolesteve
Copy link
Copy Markdown
Collaborator

/bigbonk review

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented Feb 25, 2026

@southpolesteve Bonk workflow was cancelled.

View workflow run · To retry, trigger Bonk again.

@FredKSchott
Copy link
Copy Markdown
Collaborator

Thanks @situ2001! using defineConfig like this in a framework is pretty unconventional, risk that features intended for end-user sneak into the implementation of defineConfig one day. Better to construct the object ourselves but type it correctly

…nfig object

defineConfig is an identity function meant for user-land vite.config files.
Frameworks should use the UserConfig type annotation directly, which provides
the same type inference without the semantic mismatch.
@FredKSchott FredKSchott enabled auto-merge (squash) February 27, 2026 07:26
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/vinext@63

commit: bc2bb15

@FredKSchott FredKSchott merged commit 8dc679e into cloudflare:main Feb 27, 2026
20 checks passed
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