Update untrack() type to allow no return

This commit is contained in:
aaron 2025-01-07 00:06:39 +00:00
parent a383c4ce69
commit b7878753bd
2 changed files with 1 additions and 4 deletions

View file

@ -22,4 +22,4 @@ local function untrack<T>(source: () -> T): T
end end
end end
return untrack return untrack :: ( <T>(fn: () -> T) -> T ) & ( (fn: () -> ()) -> () )

View file

@ -1250,7 +1250,6 @@ TEST("show()", wrap_root(function()
destroyed += 1 destroyed += 1
end) end)
end) end)
return nil
end) end)
end) end)
end) end)
@ -2863,7 +2862,6 @@ TEST("strict", wrap_root(function()
vide.cleanup(function() count_2 += 1 end) vide.cleanup(function() count_2 += 1 end)
return {} return {}
end) end)
return nil
end) end)
end) end)
end) end)
@ -2890,7 +2888,6 @@ TEST("strict", wrap_root(function()
vide.cleanup(function() count_2 += 1 end) vide.cleanup(function() count_2 += 1 end)
return {} return {}
end) end)
return nil
end) end)
end) end)
end) end)