Skip to content

Commit

Permalink
Revert original commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketasaja committed Aug 7, 2024
1 parent dd8c8f0 commit 9130102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/source.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>)

0 comments on commit 9130102

Please sign in to comment.