From 85e7ebd73310adeb55a3d6e2a30abdd3b4b8e88e Mon Sep 17 00:00:00 2001 From: horrible little slime <69secret69email69@gmail.com> Date: Wed, 13 Nov 2024 09:14:42 -0500 Subject: [PATCH] make `Modifiers` a generic --- src/modifier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.