Skip to Content
defold-typescript
Get startedGuidesAPILibraries
Global types

PlainTable

Any value Lua holds as a plain table: an object literal, a value typed by an interface or a type alias, a LuaMap, a LuaTable or an array. Engine userdata, Lua file handles and functions carry the NonTable brand and are rejected.

The Record arm stays because an object literal checked against the intersection alone fails the excess-property check. LuaThread and LuaUserdata cannot take the brand, so both arms reject a symbol-typed __internal__ member, the one lua-types gives them; a table whose __internal__ holds any other value passes.