Type Definition for Aseprite API

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:


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.lua into the directory of script files (for smaller project)
  • add the repository as a git submodule below library directory, and link library directory using .luarc.json (example)