t
t copied to clipboard
A Runtime Typechecker for Roblox
I could be wrong about this, but I don't believe `Enum.EnumType` is currently defined anywhere within the RobloxTS typings as seen [in the search results](https://github.com/search?q=org%3Aroblox-ts+EnumType&type=code) or the [enums definition file](https://github.com/roblox-ts/types/blob/master/include/generated/enums.d.ts)....
I added typecheckers for Vector2 / Vector3 unit vectors which are common types of values when communicating spatial user input.
`t` doesn't have a way to check varargs (if there is, then it's not documented and should be documented / I couldn't find it). You could, of course, `t.array(check)({...})` inside...
Since there are just updates to the main branch and no releases (except the ones from 2021), this lib can't be installed with most package managers. I would suggest just...
Adds list variants to guards that take parameter lists to avoid extremely large register allocations which can cause large unions & similar to error. Caveat with `literalList` due to how...
The init file gets lint errors when it uses the above functions before they are defined see: t.literal, line 518 t.instanceof line 1124 t.instanceA line 1162