|
|
|
|
|
by kbumsik
3034 days ago
|
|
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? |
|
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.