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 0fa4ea8 commit 3d04d79Copy full SHA for 3d04d79
src/Theme.ts
@@ -47,7 +47,7 @@ export class Theme<TValues extends Record<string, InterpolatedVars<any> | Contro
47
48
protected _add(key: string, value: InterpolatedVars<any> | ControlVar<any, any>): void {
49
if (this.value[key]) throw new Error(`Key ${key} already exists in theme. Use set to change the value.`)
50
- if (this.ready) { this.value[key]?.removeDep(this) }
+ if (this.ready) { this.value[key as keyof TValues]?.removeDep(this) }
51
52
this.value[key as keyof TValues] = value as TValues[keyof TValues]
53
0 commit comments