Well, it is interested question how to make the library annotations are comfortable for everyone. I’m still not found which way is the best, there are several ways to do it.
Annotations are required to find type checking errors in the code faster and better code navigation
I’m using annotations in:
- Defold Editor
- Defold Kit (VS Code)
- Any IDE + Lua Language Server (LLS)
- I don’t use annotations
The fully source annotated files is the best way for the Defold Kit or Defold Editor with new LLS. The Defold Kit can unpack the dependencies to make work “Go To Definition” function to the library code.
But for IDE with Lua Language Server there are two ways: copy source code or copy just “API Reference” like this annotations. So this kind of file I expected to see at /annotations/tinyecs/tiny.lua
here.