How can use the special types certain API’s use on the DevHub? Do we have to create them ourselves? Does Luau allow this?
I’m currently starting to use types, and have become curious about this. I’ve noticed on the DevHub we see that many arguments use their own type, i.e. HttpService:PostAsync()
has HttpContentType
as the type for the arguement. Lots of others use Variants
, which upon clicking leads me to Tuple
.
https://developer.roblox.com/en-us/api-reference/function/HttpService/PostAsync
What type should we use? Do we need to create our own type for this? Why is this not part of Luau?
Thanks!