LuaCATS / love2d

Definitions for the LÖVE 2D game framework
10 stars 4 forks source link

`love.config` type checking #6

Open alterae opened 1 month ago

alterae commented 1 month ago

Currently love.conf is just defined as follows:

---@alias love.conf fun(t: table)

This is frustrating because it means there's no autocompletion or other type checking on the t parameter. Additionally, there doesn't seem to be a class describing that table anywhere in this library, despite it being listed in detail in love2d-api.

It would be nice to have an actual type definition available for t, to enable configuration type checking.