Skip to content

Instantly share code, notes, and snippets.

@howmanysmall
Created August 19, 2021 15:39
Show Gist options
  • Save howmanysmall/dc3399e5746ad83538e825e46a0623ab to your computer and use it in GitHub Desktop.
Save howmanysmall/dc3399e5746ad83538e825e46a0623ab to your computer and use it in GitHub Desktop.
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