Add Source<T> export

This commit is contained in:
Aaron Smith 2023-08-14 16:38:15 +01:00
parent 5a2c6fb945
commit f00fc8aeb1
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ local create = graph.create
local set = graph.set
type Source<T> = (() -> T) & ((T) -> T)
export type Source<T> = (() -> T) & ((T) -> T)
local function source<T>(value: T): Source<T>
local node, get_value = create(value :: T)