mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-18 10:53:46 +01:00
Update docs/user-defined-type-functions.md
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
parent
7b30204b25
commit
497c4e0546
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ This section details the initial programming interface we propose for `type`s wh
|
||||||
|
|
||||||
| Instance Methods | Return Type | Description |
|
| Instance Methods | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- |
|
||||||
| `setparameters(pack: {type}?, variadic: type?)` | `nil` | sets the function's parameter types to the arguments |
|
| `setparameters(pack: {type}?, variadic: type?)` | () | sets the function's parameter types to the arguments |
|
||||||
| `parameters()` | `{pack: {type}?, variadic: type?}` | returns the function's parameter types as a table |
|
| `parameters()` | `{pack: {type}?, variadic: type?}` | returns the function's parameter types as a table |
|
||||||
| `setreturns(pack: {type}?, variadic: type?)` | () | sets the function's return types to the arguments |
|
| `setreturns(pack: {type}?, variadic: type?)` | () | sets the function's return types to the arguments |
|
||||||
| `returns()` | `{pack: {type}?, variadic: type?}` | returns the function's return types as a table |
|
| `returns()` | `{pack: {type}?, variadic: type?}` | returns the function's return types as a table |
|
||||||
|
|
Loading…
Add table
Reference in a new issue