News for hackers. Stuff that matters.
Re:Typescript: class vs. interface by kbumsik on Tuesday February 27, 2018 @01:49PM (#16476565)
I am new to Typescript, but I don't quite see why and how it hurts at the end. He defines two interfaces that are not implemented in any classes, so those interfaces don't do anything to the actual program yet. I guess it is safe for Typescript to produce no code. Any specific scenario this will be problematic?
Re:Typescript: class vs. interface by slig on Tuesday February 27, 2018 @01:58PM (#16476661)
> I guess it is safe for Typescript to produce no code.

TypeScript produces no code in that case because interfaces are a TypeScript feature and are only used to check your code before compiling it down to JavaScript.