How to init a new class in TS in such a way (example in C# to show what I want):
TS
C#
// ... some code before return new MyClass { Field
The easiest way to do this is with type casting.
return { Field1: "ASD", Field2: "QWE" };