mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
feat: add CanBeSource type
This commit is contained in:
parent
f3bfc65607
commit
b6050515af
5 changed files with 9 additions and 2 deletions
|
|
@ -74,7 +74,9 @@ Utility used to read a value that is either a primitive or a source.
|
|||
- **Type**
|
||||
|
||||
```luau
|
||||
function read<T>(value: T | () -> T): T
|
||||
type CanBeSource<T> = T | (() -> T)
|
||||
|
||||
function read<T>(value: CanBeSource<T>): T
|
||||
```
|
||||
|
||||
## batch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue