Created
August 19, 2021 15:39
-
-
Save howmanysmall/dc3399e5746ad83538e825e46a0623ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Class = {} | |
Class.__index = Class | |
function Class:Destroy() | |
setmetatable(self, nil) | |
end | |
function Class:Method() | |
return 1 | |
end | |
function Class:OtherMethod(Value: any) | |
return not not Value | |
end | |
function Class.new() | |
return setmetatable({Value = 1}, Class) | |
end | |
export type Class = typeof(Class.new()) | |
return Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment