Hey everyone. This may be a simple question to answer, however, I couldn’t find any articles online that helped with this.
I am fairly new to using the typeof
function, and I find it extremely useful. The question I have is, how would you use typeof
without calling a method on a class (module script)? I can say typeof(class.new())
, and it solves the type issue I am having, however, I don’t want to call said function.
Any answers are appreciated; thank you in advance.
local class = {}
class.__index = class
local databases: {[string]: typeof(class.new)} = {}