How to init a new class in TS in such a way (example in C# to show what I want):

// ... some code before
return new MyClass { Field1 = "ASD", Field2 = "QWE" };
// ...  some code after

18 Answers
18

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *