mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update support-for-type-packs-in-user-defined-type-functions.md
This commit is contained in:
parent
066486004b
commit
05024b4a80
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ type a = f<(string, number), ...number>
|
||||||
|
|
||||||
| New/Update | Library Functions | Return Type | Description |
|
| New/Update | Library Functions | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- | ------------- |
|
||||||
| New | `pack(packs: {type} isvariadic: boolean?)` | `type` | returns an immutable instance of a type pack; when `isvariadic` is true, `packs` table can only have one type. |
|
| New | `pack(types: {type} isvariadic: boolean?)` | `type` | returns an immutable instance of a type pack; when `isvariadic` is true, `packs` table can only have one type. |
|
||||||
| Update | `newfunction(parameters: { head: {type}?, tail: type? }, returns: { head: {type}?, tail: type? }, generics: {type}?)` | `type` | `tail` arguments can now accept variadic packs.
|
| Update | `newfunction(parameters: { head: {type}?, tail: type? }, returns: { head: {type}?, tail: type? }, generics: {type}?)` | `type` | `tail` arguments can now accept variadic packs.
|
||||||
|
|
||||||
### `type` Instance
|
### `type` Instance
|
||||||
|
|
Loading…
Add table
Reference in a new issue