Closed Dimava closed 9 months ago
In my opinion, you don't do like
data.extend([ { type: "ammo-category", name: "foo", } satisfies AmmoCategory, { type: "item", name: "bar", // other fields... } satisfies ItemPrototype, ])
You do like
data.extend<AmmoCategory | ItemPrototype>([ { type: "ammo-category", name: "foo", }, { type: "item", name: "bar", // other fields... }, ])
This is more simple if you have one type and many items
Consider adding this as an option in readme
Good suggestion; I've updated the Readme with this as an option.
In my opinion, you don't do like
You do like
This is more simple if you have one type and many items
Consider adding this as an option in readme