mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add read()
This commit is contained in:
parent
d8a627c58a
commit
f733647031
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ local vide = {
|
|||
-- util
|
||||
cleanup = cleanup,
|
||||
untrack = untrack,
|
||||
read = function<T>(value: T | () -> T): T
|
||||
return if type(value) == "function" then value() else value
|
||||
end,
|
||||
|
||||
-- animations
|
||||
spring = spring,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue