mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add Source<T> export
This commit is contained in:
parent
5a2c6fb945
commit
f00fc8aeb1
2 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue