Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Typechecking

daelvn edited this page May 12, 2018 · 1 revision

lobject provides a .typechecker function that can check the usual Lua types, plus the types of Classes, Mixins and Instances. It is used exactly as you would use Lua's builtin type.

local lobject = require "lobject"
local str     = ""
local t       = lobject.typechecker (str)

Clone this wiki locally