From 1d1bcc947caeaf0c27ae6c1a64fdf96f157a3a69 Mon Sep 17 00:00:00 2001 From: Junseo Yoo Date: Sun, 14 Jul 2024 15:54:20 -0700 Subject: [PATCH] Added parameters to newtable function --- docs/user-defined-type-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 38803f3..7ca151f 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -102,7 +102,7 @@ All attributes of newly created typelib are initialized with empty tables / arra | `getbooleansingleton(arg: boolean)` | `typelib` | returns an immutable runtime representation of a boolean singleton type of the argument | | `getunion(arg: {typelib})` | `typelib` | returns an immutable runtime representation of union type of its argument | | `getintersection(arg: {typelib})` | `typelib` | returns an immutable runtime representation of intersection type of its argument | -| `newtable()` | `typelib` | returns a mutable runtime representation of a `table` type | +| `newtable(props: {[typelib]: typelib}, indexer: {key: typelib, value: typelib}?)` | `typelib` | returns a mutable runtime representation of a `table` type | | `newmetatable()` | `typelib` | returns a mutable runtime representation of a metatable represented as a special property of the `table` type | | `newfunction()` | `typelib` | returns a mutable runtime representation of a `function` type | | `isnil(arg: typelib)` | `boolean` | returns true if the argument is syntactically a runtime representation of the built-in type `nil` |