How to add comments on function types?

image

Roblox recently added this feature and I think this is really useful.
However, I wonder if it is also possible to add comments on function types like the image below.
image

1 Like

You might wanna test it out. Of course, in order to see if it does work.

Not at the current moment. The only way to do something like this is:

-- this is a comment
local function foo(...) end

local bar: typeof(foo) = function(...) end -- 'bar' has 'this is a comment' as its documentation
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.