Skip to content

Wrap function argument returns with parentheses #72

@TIMONz1535

Description

@TIMONz1535

CHG return names and parentheses can be used in DocFunction

---@type fun():(x: number, y: number, ...: number)

for example, here
https://wiki.facepunch.com/gmod/sound.Generate
now its function param with number|table return value

---@param callbackOrData fun(sampleIndex: number): number|table

should become function|table param also with return value name

---@param callbackOrData fun(sampleIndex: number):(sampleValue: number)|table

https://wiki.facepunch.com/gmod/spawnmenu.GetContentType
duplicated second return from first return fun

---@return fun(container: Panel, data: table): Panel # The panel creation function.
--- ....
--- Function return value(s):
--- * Panel `pnl` - The created panel
---@return Panel # The created panel

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions