From ffe9188c981488573e423b6179353f2fc4f4871b Mon Sep 17 00:00:00 2001 From: Junseo Yoo Date: Mon, 15 Jul 2024 16:27:24 -0700 Subject: [PATCH] fix arguments of Function.setparameters and Function.setreturns --- docs/user-defined-type-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 9894351..8a68388 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -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