mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add context()
This commit is contained in:
parent
83db00a073
commit
8142acd1c1
8 changed files with 303 additions and 1 deletions
|
|
@ -34,7 +34,11 @@ Creates a new source with the given value.
|
|||
- **Type**
|
||||
|
||||
```lua
|
||||
function source<T>(value: T): (T?) -> T
|
||||
function source<T>(value: T): Source<T>
|
||||
|
||||
type Source<T> =
|
||||
() -> T -- get
|
||||
& (T) -> () -- set
|
||||
```
|
||||
|
||||
- **Details**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue