You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Narrow type of some lists in the TypeScript typings file #43
Some functions like inventory are typed to return any[]. While not technically wrong, it could have a more precise typing of ValueItemstack[], which helps with autocomplete.
There are also some functions like nbtWithIntList that take in an any[], though I'm not sure what the type for that would be, or if it would be helpful thanks to #31 still being open.
There are also some functions that could maybe use generics to get a more complete typing, ie operatorMap, though I am not familiar enough with TypeScript to give a concrete suggestion
Activity
rubensworks commentedon May 28, 2025
Thanks for the suggestion!