mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
revert to type from typeof (remnant of debugging)
This commit is contained in:
parent
95d1f90c45
commit
852e21df5b
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
local function read<T>(value: (() -> T) | T): T
|
||||
return if typeof(value) == "function" then value() else value
|
||||
return if type(value) == "function" then value() else value
|
||||
end
|
||||
|
||||
return read
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue