mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-20 03:44:05 +01:00
fix arguments of Function.setparameters and Function.setreturns
This commit is contained in:
parent
8ec04bc4e0
commit
ffe9188c98
1 changed files with 2 additions and 2 deletions
|
@ -162,9 +162,9 @@ All attributes of newly created typelib are initialized with empty tables / arra
|
|||
|
||||
| Instance Methods | Return Type | Description |
|
||||
| ------------- | ------------- | ------------- |
|
||||
| `setparameters(arg: {typelib} \| typelib)` | `nil` | sets self's parameter types to the argument, where an array implies a TypePack and the latter implies a Variadic |
|
||||
| `setparameters(arg: {typelib} \| typelib?)` | `nil` | sets self's parameter types to the argument, where an array implies a TypePack and the latter implies a Variadic |
|
||||
| `getparameters()` | `{typelib} \| typelib?` | returns the runtime representation of self's parameter type if it exists, else nil. Return an array implies a TypePack and a single value implies a Variadic |
|
||||
| `setreturns(arg: {typelib} \| typelib)` | `nil` | sets self's return types to the argument, where an array implies a TypePack and the latter implies a Variadic |
|
||||
| `setreturns(arg: {typelib} \| typelib?)` | `nil` | sets self's return types to the argument, where an array implies a TypePack and the latter implies a Variadic |
|
||||
| `getreturns()` | `{typelib} \| typelib?` | returns the runtime representation of self's return type if it exists, else nil. Return an array implies a TypePack and a single value implies a Variadic |
|
||||
|
||||
#### Union
|
||||
|
|
Loading…
Add table
Reference in a new issue