- override<OBJECT, PROPERTY>(overrider: (() => IOverrideDescription<OBJECT, PROPERTY>)): (<K, T>(target: T, key: K) => void)
-
Type Parameters
-
OBJECT extends object
-
PROPERTY extends string | number | symbol
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, OBJECT>
Returns void
Register custom values that will replace default values in a vanilla object.
For example, say you want to change the number of planks to dismantle from a log from 2 to 4. That would look like this: