diff --git a/src/modifier.ts b/src/modifier.ts index 8f3b85c7c..92455a44d 100644 --- a/src/modifier.ts +++ b/src/modifier.ts @@ -128,8 +128,8 @@ export type ModifierValue = T extends BooleanModifier ? string : string; -export type Modifiers = Partial<{ - [T in ModifierType]: ModifierValue; +export type Modifiers = Partial<{ + [K in T]: ModifierValue; }>; /** * Merge two Modifiers objects into one, summing all numeric modifiers, ||ing all boolean modifiers, and otherwise letting the second object overwrite the first.