We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47c329 commit ee1f855Copy full SHA for ee1f855
packages/vuetify/src/composables/theme.ts
@@ -506,17 +506,15 @@ export function createTheme (options?: ThemeOptions): ThemeInstance & { install:
506
507
const globalName = new Proxy(name, {
508
get (target, prop) {
509
- return target[prop as keyof typeof target]
+ return Reflect.get(target, prop)
510
},
511
set (target, prop, val) {
512
if (prop === 'value') {
513
deprecate(`theme.global.name.value = ${val}`, `theme.change('${val}')`)
514
}
515
- // @ts-expect-error
516
- target[prop] = val
517
- return true
+ return Reflect.set(target, prop, val)
518
519
- }) as typeof name
+ })
520
521
return {
522
install,
0 commit comments