Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

love.config type checking #6

Open
alterae opened this issue Jul 6, 2024 · 0 comments
Open

love.config type checking #6

alterae opened this issue Jul 6, 2024 · 0 comments

Comments

@alterae
Copy link

alterae commented Jul 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant