Skip to content

Commit

Permalink
Make getEnum, getName of ZirconEnumItem more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Mar 14, 2022
1 parent d0e0b95 commit da6e4cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rbxts/zircon",
"version": "1.0.5",
"version": "1.0.6",
"description": "",
"main": "out/init.lua",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions src/Class/ZirconEnumItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ export class ZirconEnumItem<
return matches[this.getName() as K](this);
}

public getName(): K {
return super.getName() as K;
}

public getEnum(): TParent {
return super.getEnum() as TParent;
}

public toString() {
return `${this.getEnum().getEnumName()}.${this.getName()}`;
}
Expand Down

0 comments on commit da6e4cf

Please sign in to comment.