Skip to content

Shut The Fuck Up

This function silences warnings from datatype assembly, as well as strips information from runtime error reporting.

function light.stfu

Client Server Shared Synchronous
1
2
3
function stfu(
    sybau: boolean
): ()

As an example, you may want to send an array of any. Since any is considered "nilable" by default, using it in an array will print a warning to your console. To silence it, you can use light.stfu():

local ty = light.datatypes

light.stfu(true)
local arr_any = ty.arr(ty.any)
light.stfu(false)

return light.container({
    foo = { ty.u8 },
    bar = arr_any,
})