mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
5 lines
150 B
Text
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
|