DEV Community


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

jckodel profile image

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: It is very usefull for those computed properties =)