-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
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** | `[email protected]` |
| **Nuxt version** | `4.2.2` |
| **Nitro version** | `2.12.9` |
| **Builder** | `[email protected]` |
| **Config** | `compatibilityDate`, `css`, `devtools`, `eslint`, `experimental`, `icon`, `modules`, `routeRules`, `vite` |
| **Modules** | `@nuxt/[email protected]`, `@nuxt/[email protected]`, `@nuxt/[email protected]`, `@nuxt/[email protected]`, `@pinia/[email protected]`, `@vueuse/[email protected]`, `[email protected]` |Any additional comments?
My code base depends heavily on global indexed types. Can it be supported again just like before?
coderabbitai
Metadata
Metadata
Assignees
Labels
No labels