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