Feedback on "typeof"

It is appeared that typeof accepts comments, for example, with this type:

export type StaticIcon = {
	new: typeof(
		--[[
			Constructs an empty <code>32x32</code> icon on the topbar.
		]]
		function(): Icon
			return (nil :: any) :: Icon
		end
	),
 } & StaticFunctions

using new shows the comment in typeof:
image

This is a nice feature, but it is not documented.
In what cases the feature can be used?

Thank you!

Affected URL: Roblox globals | Documentation - Roblox Creator Hub

1 Like

What do you mean when it “accepts comments”. Comments can be placed (almost) anywhere, since they are ignored during bytecode compilation.

1 Like

ok, I will update the post to make things clearer. Thank you!