fix typing on read function

This commit is contained in:
TaylorsRus 2025-04-27 19:53:57 +01:00
parent ed5c1ddfd4
commit c8d4421f00

View file

@ -1,5 +1,7 @@
local function read<T>(value: T | () -> T): T local source = require(script.Parent.source)
return if type(value) == "function" then value() else value
local function read<T>(value: source.Source<T> | T): T
return if typeof(value) == "function" then value() else value
end end
return read return read