by CompeyDev · 1y ago · 0 comments
Unless you're using metatables, this would just be manually defining `self` with a type containing the fields you want it to represent.
For example:
```luau local Module = {} export type Module = { field: string }
function Module.Something(self: Module) print(self.field) end
return Module ```
EDIT: oops, new to this site; expected codeblocks to be a thing :p
No comments yet.