Is defining generics of a Component again when it's being used, really necessary in Flamework?

Solution:Jump to solution
apparently you could do something like
<A extends Attributes = {}, I extends Tool = Tool>...
12 Replies
defining generics?
wdym
ohhh, i mean you could just create item that implements base components with set generics
generics are used only for guards so flamework can tell whether the instance is right and whether you have correct attributes
I have to do it when defining fields though
as seen in the image
it's confusing
If i don't provide those, it complains
hmm?

forgot to add this image too oops
oh so you did baseclass?
Solution
apparently you could do something like
<A extends Attributes = {}, I extends Tool = Tool>
is that actually possible
i don't think it is
let me try real quick
WHAT
IT WORKS
😭
YAAAY :3
I think the documentations need a bit of an update, but I'm not sure whether this is a typescript thing, or a flamework thing
it was vague
thank you
i think it's a typescript thing
alright
thanks