Answer the question
In order to leave comments, you need to log in
How to assign an object to another object in TS?
There is an object with the interface
var obj: Obj {}
And there is an object that we get from the server response
var body
How to assign all values from body to obj using the same keys that are in obj?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question