DEV Community

Discussion on: Sorry C# and Java developers, this is not how TypeScript works

Collapse
 
jckodel profile image
J.C.Ködel

1) For most transport classes (even with C# or Java) you should use plain classes (i.e.: no methods on them). Typescript Interfaces are great for this.

2) If you really want typed transports, this is an awesome libray that reads some dynamic value and casts it to typed value: github.com/typestack/class-transfo... It is very usefull for those computed properties =)