[Bug]: isTemplateDeclaration
and isTemplateDeclarationOrInstance
take TemplatedType
instead of just Type
#5447
Labels
Describe the bug
isTemplateDeclaration
andisTemplateDeclarationOrInstance
takeTemplatedType
instead of justType
. This makes them a lot less useful and inconsistent withisTemplateInstance
, which takes just aType
.Presumably they were meant to take
Type
because they each have a type assertion ofis TemplatedType
, which is redundant with the parameter already beingTemplatedType
.I ended up having to write this in my code (and checked that first) so that I could pass a type to
isTemplateDeclaration
:Reproduction
See above
Checklist
The text was updated successfully, but these errors were encountered: