mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
fix typing on read function
This commit is contained in:
parent
ed5c1ddfd4
commit
c8d4421f00
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue