vide/src/read.luau
2025-04-27 20:00:13 +01:00

5 lines
150 B
Text

local function read<T>(value: ((() -> T) & ((value: T) -> T)) | T): T
return if typeof(value) == "function" then value() else value
end
return read