---@ dialect the Lua Language Server uses, so annotations you already have work here, and anything you write here keeps working there. Every tag and every type form the parser recognises is listed below.
Annotation tags
Type syntax
Unions, optionals, arrays and generic tables all compose:Full example
An explicit
---@param or ---@type always beats inference. That is the escape hatch for code shapes inference cannot follow — dynamic tables, values built through a helper the server does not know about.deprecated diagnostic is raised for API that the Garry’s Mod wiki marks deprecated. ---@deprecated on your own functions is currently documentation only; it does not yet produce a diagnostic at call sites.