Revert original commit

This commit is contained in:
Ketasaja 2024-08-07 18:26:28 +00:00
parent dd8c8f0b03
commit 9130102401
No known key found for this signature in database
GPG key ID: CFEC764C3F7ADC69

View file

@ -8,7 +8,7 @@ local update_descendants = graph.update_descendants
export type Source<T> = (() -> T) & ((value: T) -> T)
local function source<T>(initial_value: T?): Source<T>
local function source<T>(initial_value: T): Source<T>
local node = create_source_node(initial_value)
return function(...): T
@ -28,4 +28,4 @@ local function source<T>(initial_value: T?): Source<T>
end
end
return source
return source :: (<T>(initial_value: T) -> Source<T>) & (<T>() -> Source<T>)