- genericEnum<E>(enumObject: E, name: string): (<K, T>(target: T, key: K) => void)
-
Parameters
-
enumObject: E
-
name: string
Returns (<K, T>(target: T, key: K) => void)
-
- <K, T>(target: T, key: K): void
-
Type Parameters
-
K extends string | number | symbol
-
T extends Record<K, E[keyof E]>
Returns void
Registers into an enum that we haven't added explicit modding support for.
Caveats!