-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: sfc
Description
Vue version
3.5.26
Link to minimal reproduction
Steps to reproduce
Define global indexed type like (typicaly in types.d.ts but not supported in https://play.vuejs.org/)
declare global {
type options = {
code: {
type: string
props: Record<string, unknown>
selected: boolean
}
}
}
- Use it anywhere to reproduce the error
What is expected?
No error just like with older versions of vue.
What is actually happening?
An error happens because global index types don't seem to be supported anymore?
System Info
| | |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Operating system** | `Windows 10.0.26200` |
| **CPU** | `AMD Ryzen 9 PRO 8945HS w/ Radeon 780M Graphics (16 cores)` |
| **Node.js version** | `v24.11.1` |
| **nuxt/cli version** | `3.31.2` |
| **Package manager** | `pnpm@10.24.0` |
| **Nuxt version** | `4.2.2` |
| **Nitro version** | `2.12.9` |
| **Builder** | `vite@7.2.7` |
| **Config** | `compatibilityDate`, `css`, `devtools`, `eslint`, `experimental`, `icon`, `modules`, `routeRules`, `vite` |
| **Modules** | `@nuxt/eslint@1.12.1`, `@nuxt/ui@4.3.0`, `@nuxt/image@2.0.0`, `@nuxt/test-utils@3.21.0`, `@pinia/nuxt@0.11.3`, `@vueuse/nuxt@14.1.0`, `nuxt-charts@2.0.0` |Any additional comments?
My code base depends heavily on global indexed types. Can it be supported again just like before?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: sfc