|
|
|
|
|
by drinchev
2998 days ago
|
|
I sometimes see difference between TypeScript's compiler and babel. For example in this case TypeScript doesn't care so much about `defineProperty`. I guess the rules are not so strict, since it assumes that the rest of your code will be passed through TypeScript itself. Anyway in both cases, I prefer TypeScript's way of enhancing the class inheritance in JavaScript by introducing private / readonly and many more. https://www.typescriptlang.org/play/index.html#src=class%20D... |
|