Posts by Matheus Ferreira • 27 points
1 post
-
0
votes1
answer57
viewsQ: Unreported variable type error in class constructor
I’m creating a class of ErrorHandler for an API. When creating variables in the class constructor, Typescript accuses that variable statusCode does not have a defined type: interface ErrorObj {…