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:

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.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)
4 Likes

I’m updating this deinition to meet API v28. I’m glad if you give this a try and notify bugs!

1 Like