Skip to content

fix(client): add type declaration for ?url&raw imports#21774

Closed
HomyeeKing wants to merge 1 commit intovitejs:mainfrom
HomyeeKing:fix-url-raw-type-declaration
Closed

fix(client): add type declaration for ?url&raw imports#21774
HomyeeKing wants to merge 1 commit intovitejs:mainfrom
HomyeeKing:fix-url-raw-type-declaration

Conversation

@HomyeeKing
Copy link
Contributor

Add missing TypeScript declaration for combining url and raw query parameters.

This allows importing files with both ?url&raw suffix without IDE errors, e.g.:

import _redirects from "/_redirects?url&raw";

Fixes #21277

Add missing TypeScript declaration for combining url and raw query parameters.
This allows importing files with both ?url&raw suffix without IDE errors.

Fixes vitejs#21277
@sapphi-red
Copy link
Member

As written in #21277 (comment), ?url&raw doesn't make sense.

@sapphi-red sapphi-red closed this Mar 7, 2026
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.

IDE throws error on ?url&raw import

2 participants