mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Merge branch 'type-pack-docs' of https://github.com/vegorov-rbx/luau into type-pack-docs
This commit is contained in:
commit
88cb292023
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ type C<S...> = A<number, S...> -- with a generic type pack
|
|||
type D = A<number, ()> -- with an empty type pack
|
||||
```
|
||||
|
||||
Trailing type packs arguments can also be provided without parentheses as variadic type arguments:
|
||||
Trailing type pack argument can also be provided without parentheses by specifying variadic type arguments:
|
||||
|
||||
```lua
|
||||
type List<Head, Rest...> = (Head, Rest...) -> ()
|
||||
|
|
Loading…
Add table
Reference in a new issue