mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-20 03:44:05 +01:00
library names to luacase
This commit is contained in:
parent
4079470d35
commit
4231d1dcb5
1 changed files with 18 additions and 18 deletions
|
@ -46,44 +46,44 @@ Note: methods under a different type heading (ex: `Singleton`) imply that the me
|
||||||
|
|
||||||
| Function Declaration | Return Type | Description |
|
| Function Declaration | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- |
|
||||||
| `isString()` | `boolean` | returns true if self is of type `string` |
|
| `isstring()` | `boolean` | returns true if self is of type `string` |
|
||||||
| `isNumber()` | `boolean` | returns true if self is of type `number` |
|
| `isnumber()` | `boolean` | returns true if self is of type `number` |
|
||||||
| `isBoolean()` | `boolean` | returns true if self is of type `boolean` |
|
| `isboolean()` | `boolean` | returns true if self is of type `boolean` |
|
||||||
| `isTable()` | `boolean` | returns true if self is of type `table` |
|
| `istable()` | `boolean` | returns true if self is of type `table` |
|
||||||
| `isThread()` | `boolean` | returns true if self is of type `thread` |
|
| `isthread()` | `boolean` | returns true if self is of type `thread` |
|
||||||
| `isFunction()` | `boolean` | returns true if self is of type `function` |
|
| `isfunction()` | `boolean` | returns true if self is of type `function` |
|
||||||
| `isBuffer()` | `boolean` | returns true if self is of type `buffer` |
|
| `isbuffer()` | `boolean` | returns true if self is of type `buffer` |
|
||||||
| `isNil()` | `boolean` | returns true if self is of type `nil` |
|
| `isnil()` | `boolean` | returns true if self is of type `nil` |
|
||||||
| `isClass()` | `boolean` | returns true if self is of type `class` (do we need this?) |
|
| `isclass()` | `boolean` | returns true if self is of type `class` (do we need this?) |
|
||||||
| `isBooleanSingleton()` | `boolean` | returns true if self is a boolean singleton |
|
| `isbooleansingleton()` | `boolean` | returns true if self is a boolean singleton |
|
||||||
| `isStringSingleton()` | `boolean` | returns true if self is a string singleton |
|
| `isstringsingleton()` | `boolean` | returns true if self is a string singleton |
|
||||||
| `isA(arg: lType)` | `boolean` | returns true if arg is the same type as self |
|
| `isa(arg: lType)` | `boolean` | returns true if arg is the same type as self |
|
||||||
|
|
||||||
#### Primitive
|
#### Primitive
|
||||||
|
|
||||||
| Function Declaration | Return Type | Description |
|
| Function Declaration | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- |
|
||||||
| `getType()` | `string` | returns either "nil", "boolean", "string", "thread", "function", "table", or "buffer" |
|
| `gettype()` | `string` | returns either "nil", "boolean", "string", "thread", "function", "table", or "buffer" |
|
||||||
|
|
||||||
#### Singleton
|
#### Singleton
|
||||||
|
|
||||||
| Function Declaration | Return Type | Description |
|
| Function Declaration | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- |
|
||||||
| `getValue()` | `string` | returns either "true", "false", or a string singleton |
|
| `getvalue()` | `string` | returns either "true", "false", or a string singleton |
|
||||||
|
|
||||||
#### Table
|
#### Table
|
||||||
|
|
||||||
| Function Declaration | Return Type | Description |
|
| Function Declaration | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- |
|
||||||
| `getProps()` | `table` | returns a type representation of tables (e.g. {name = "John"} will return {[string] = "string"}) |
|
| `getprops()` | `table` | returns a type representation of tables (e.g. {name = "John"} will return {[string] = "string"}) |
|
||||||
| `getIndexer()` | `table` | returns a type representation of arrays (e.g. {1, "hi", 3} will return {[number] = "number" \| "string"}) |
|
| `getindexer()` | `table` | returns a type representation of arrays (e.g. {1, "hi", 3} will return {[number] = "number" \| "string"}) |
|
||||||
|
|
||||||
#### Class
|
#### Class
|
||||||
|
|
||||||
| Function Declaration | Return Type | Description |
|
| Function Declaration | Return Type | Description |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- |
|
||||||
| `getName()` | `table` | returns the name of self's class |
|
| `getname()` | `table` | returns the name of self's class |
|
||||||
| `getParent()` | `lType` | returns lType userdata of self's parent |
|
| `getparent()` | `lType` | returns lType userdata of self's parent |
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue