mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update docs/_pages/typecheck.md
Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>
This commit is contained in:
parent
a496ce9039
commit
c2f7f46fbc
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ type C<S...> = A<number, S...> -- with a generic type pack
|
||||||
type D = A<number, ()> -- with an empty 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
|
```lua
|
||||||
type List<Head, Rest...> = (Head, Rest...) -> ()
|
type List<Head, Rest...> = (Head, Rest...) -> ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue