fix: remove observe type union (#15)

This commit is contained in:
Kevin 2024-08-10 08:17:15 +02:00 • committed by GitHub
parent e39ef14e16
commit 72211a674e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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