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