Type Definition for Aseprite API
I made a type definition of whole Aseprite API. It works on lua-language-server.
And there’s completion demo:
Installation
To receive benefit of type definition, we have to link ./definitions/aseprite.lua file with our workspace.
We have several method to do so, I recommend these 2 ways:
- put
./definitions/aseprite.luainto the directory of script files (for smaller project) - add the repository as a git submodule below
librarydirectory, and linklibrarydirectory using.luarc.json(example)