Skip to content

Commit 3d04d79

Browse files
committed
build: fix internal type error
1 parent 0fa4ea8 commit 3d04d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class Theme<TValues extends Record<string, InterpolatedVars<any> | Contro
4747

4848
protected _add(key: string, value: InterpolatedVars<any> | ControlVar<any, any>): void {
4949
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) }
50+
if (this.ready) { this.value[key as keyof TValues]?.removeDep(this) }
5151

5252
this.value[key as keyof TValues] = value as TValues[keyof TValues]
5353

0 commit comments

Comments
 (0)