[1.1.100] Return type missing for get_insertable_count

User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 884
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

[1.1.100] Return type missing for get_insertable_count

Post 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
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [1.1.100] Return type missing for get_insertable_count

Post 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).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”