LuaInventory.get_insertable_count(item) works fine in game and returns an integer.
But latest docs (and the JSON) don't list the formal return type. Discovered this while testing a LuaDocs generator for generating hint files for EmmyLua from the Factorio API JSON.
API Docs page: https://lua-api.factorio.com/1.1.100/cl ... able_count
[1.1.100] Return type missing for get_insertable_count
Re: [1.1.100] Return type missing for get_insertable_count
Thanks for the note, added the return type (uint) for the next version (1.1.102).
You may find it useful to compare the output of your doc generator with the output by FMTK. It generates hint files for https://luals.github.io/wiki/annotations/ which is based on EmmyLua (but not exactly the same).
You may find it useful to compare the output of your doc generator with the output by FMTK. It generates hint files for https://luals.github.io/wiki/annotations/ which is based on EmmyLua (but not exactly the same).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.