Page 1 of 1

[1.1.100] Return type missing for get_insertable_count

Posted: Mon Dec 25, 2023 1:11 am
by Oktokolo
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

Re: [1.1.100] Return type missing for get_insertable_count

Posted: Mon Jan 01, 2024 2:28 pm
by Bilka
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).