Skip to content

Commit 4efb25e

Browse files
authored
Fix class type parent method in type function docs (#42)
1 parent 293ab84 commit 4efb25e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

_pages/typecheck.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,10 +1048,16 @@ classtype:properties(): { [type]: { read: type?, write: type? } }
10481048
Returns the properties of the class with their respective `read` and `write` types.
10491049

10501050
```luau
1051-
classtype:parent(): type?
1051+
classtype:readparent(): type?
10521052
```
10531053

1054-
Returns the `type` of the class' parent class, or returns `nil` if the parent class doesn't exist.
1054+
Returns the `read` type of the class' parent class, or returns `nil` if the parent class doesn't exist.
1055+
1056+
```luau
1057+
classtype:writeparent(): type?
1058+
```
1059+
1060+
Returns the `write` type of the class' parent class, or returns `nil` if the parent class doesn't exist.
10551061

10561062
```luau
10571063
classtype:metatable(): type?

0 commit comments

Comments
 (0)