DEV Community

Towry
Towry

Posted on

Answer: could be instantiated with a different subtype of constraint 'object'

Complementing @fetzz great answer.


SHORT ANSWER

TLDR; There are two common causes for this kind of error message. You are doing the first one (see bellow). Along the text I explain in rich details what this error message want to convey.

CAUSE 1: In typscript, a generic type parameter is…

Top comments (0)