Update support-for-type-packs-in-user-defined-type-functions.md

This commit is contained in:
Tenebris Noctua 2025-04-12 06:19:08 +03:00 committed by GitHub
parent 05024b4a80
commit 366cad1f6b
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ type a = f<(string, number), ...number>
| New/Update | Library Functions | Return Type | Description |
| ------------- | ------------- | ------------- | ------------- |
| 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. |
| New | `pack(types: {type} isvariadic: boolean?)` | `type` | returns an immutable instance of a type pack; when `isvariadic` is true, `types` 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.
### `type` Instance