In Roblox’s engine documentation, many types are written with types that are described based on their engine type names. While some of these have been fixed, there are still a few that I feel could be adjusted:
| Presented Type | Ideal Type |
|---|---|
Variant |
any |
Array |
{any} |
table |
{ any } or { [string]: any } or { [any]: any } |
Dictionary |
{ [string]: any } |
Map |
{ [any]: any } |
Tuple |
...any |
(arg1: string, args: Tuple) -> Tuple |
(arg1: string, ...: any) -> ...any |
Function |
((...any) -> ...any) |
Tuple<T> |
...T |
Variant<A, B> |
A | B |
These issues are mainly present in the DataTypes, Globals, and Library documentation pages.