feat: add CanBeSource type

This commit is contained in:
Prizm 2026-08-06 09:40:12 -05:00 committed by GitHub
parent f3bfc65607
commit b6050515af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 2 deletions

View file

@ -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()