Answer the question
In order to leave comments, you need to log in
What does ts swear at if he specified the correct interface?
I can’t understand what the TS requires of me when I pass the interface to it on the item that lies in the callback. Checked, in the console room === IRoomItem, but the vehicle still does not skip. If I put any, then everything is fine (strange, yeah)
Answer the question
In order to leave comments, you need to log in
Try it differently:
Object.values<IRoomItem>(this.props.rooms).map( /* */ );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question