Here is 2 examples of code. They do absolutely the same but written in different styles.
First example works better because it is optimized for EmmyLua. Method addText returns type TreeText, it's described in its class as ---@return TreeText but EmmyLua can't show any hints.
Here is 2 examples of code. They do absolutely the same but written in different styles.
First example works better because it is optimized for EmmyLua. Method addText returns type TreeText, it's described in its class as
---@return TreeText
but EmmyLua can't show any hints.