Skip to content

love.config type checking #6

@alterae

Description

@alterae

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions