Skip to content
Discussion options

You must be logged in to vote

Not sure if this was always possible, but at least right now you actually can have a multi-line description for a @field by putting the description above the field:

Code
---@class Actor
---A table that maps a MIME type to a serialization function.
---
---Each serialization function must accept `Actor` as a parameter and return
---a string representation of it.
---@field serializers table<string, fun(v: Actor): string>
---Execute the given action. A success boolean and error message will be returned
---
---See some documentation about it
---@field execute fun(action: string): boolean, string

---@type Actor
local myActor = {}

Replies: 2 comments

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Answer selected by carsakiller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats)
2 participants