Hello, I recently checked out few public developer resources. I looked over the script’s contents and discovered certain things I hadn’t seen before. I was unable to find any resources on it, but I assume that it is some sort of type checking. Please continue if you are familiar with any documents or have an explanation. And I’d like to hear if this is useful. I appreciate your time.
Here is a quick example:
function Example<T...>(Text: string): string
return Text
end
function Number(Value: number | any, ...: number)
return Value + ...
end
local String = Example :: <T...>(Text: string) -> string
local Table = {} :: { (...any) -> () }
local Values = { ... } :: { any }
local Empty = nil :: Camera?
print(String(`Addition: {Number(1, 3)}`))
The “<T…>” truly attracts my curiosity.