mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update untrack() type to allow no return
This commit is contained in:
parent
a383c4ce69
commit
b7878753bd
2 changed files with 1 additions and 4 deletions
|
|
@ -22,4 +22,4 @@ local function untrack<T>(source: () -> T): T
|
|||
end
|
||||
end
|
||||
|
||||
return untrack
|
||||
return untrack :: ( <T>(fn: () -> T) -> T ) & ( (fn: () -> ()) -> () )
|
||||
|
|
|
|||
|
|
@ -1250,7 +1250,6 @@ TEST("show()", wrap_root(function()
|
|||
destroyed += 1
|
||||
end)
|
||||
end)
|
||||
return nil
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
|
@ -2863,7 +2862,6 @@ TEST("strict", wrap_root(function()
|
|||
vide.cleanup(function() count_2 += 1 end)
|
||||
return {}
|
||||
end)
|
||||
return nil
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
|
@ -2890,7 +2888,6 @@ TEST("strict", wrap_root(function()
|
|||
vide.cleanup(function() count_2 += 1 end)
|
||||
return {}
|
||||
end)
|
||||
return nil
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue