glaphyre/t

osyris' runtime type checker

t

pesde
A Runtime Type Checker for Roblox
 

t is a module which allows you to create type definitions to check values against.

Over here!

This repository contains a modified version of osyris' t module, which provides luau documentation with luau-lsp, and uses snake_case for most of its functions, excluding that of roblox's types which use PascalCase. This version of t is meant to be used with luau and not typescript.

Why?

When building large systems, it can often be difficult to find type mismatch bugs.
Typechecking helps you ensure that your functions are recieving the appropriate types for their arguments.

In Roblox specifically, it is important to type check your Remote objects to ensure that exploiters aren't sending you bad data which can cause your server to error (and potentially crash!).