From 913010240133d9a7a15f381847d17245ef773ffd Mon Sep 17 00:00:00 2001 From: Ketasaja Date: Wed, 7 Aug 2024 18:26:28 +0000 Subject: [PATCH] Revert original commit --- src/source.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source.luau b/src/source.luau index 3a70d01..e326815 100644 --- a/src/source.luau +++ b/src/source.luau @@ -8,7 +8,7 @@ local update_descendants = graph.update_descendants export type Source = (() -> T) & ((value: T) -> T) -local function source(initial_value: T?): Source +local function source(initial_value: T): Source local node = create_source_node(initial_value) return function(...): T @@ -28,4 +28,4 @@ local function source(initial_value: T?): Source end end -return source +return source :: ((initial_value: T) -> Source) & (() -> Source)