remove observe type union

This commit is contained in:
brinkokevin 2024-08-08 15:16:48 +02:00
parent e39ef14e16
commit 64b3943e0e

View file

@ -44,7 +44,4 @@ local function observe<K, V>(molecule: Molecule<{ [K]: V }>, factory: (value: V,
return cleanup
end
return observe :: <K, V>(
molecule: Molecule<{ [K]: V }>,
factory: ((value: V, key: K) -> () -> ()) | (value: V, key: K) -> ()
) -> () -> ()
return observe