Remove usage of object type because With Record<string, any>, you can access any property on the object without TypeScript complaining, because it's assumed that the object can have any string as a key with any type of value. With object, TypeScript doesn't allow you to access any properties on the object directly, because it doesn't know what properties the object has.
Remove usage of
object
type because With Record<string, any>, you can access any property on the object without TypeScript complaining, because it's assumed that the object can have any string as a key with any type of value. With object, TypeScript doesn't allow you to access any properties on the object directly, because it doesn't know what properties the object has.This node wrapper is always adding
minStateId
,maxStateId
, anddefaultState
, that's why they should be required: https://github.com/zardoy/node-minecraft-data/blob/542925dfcabdecbfe0556db54530fc806827c302/lib/indexes.js#L7