Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
94
rated 0 times [  95] [ 1]  / answers: 1 / hits: 127296  / 9 Years ago, thu, september 17, 2015, 12:00:00

ES6 is fully available in Node 4. I was wondering whether it includes a concept of interface to define method contracts as in MyClass implements MyInterface.



I can't find much with my Googling, but maybe there is a nice trick or workaround available.


More From » node.js

 Answers
28

Interfaces are not part of the ES6 but classes are.



If you really need them, you should look at TypeScript which support them.


[#65034] Tuesday, September 15, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
carlo

Total Points: 705
Total Questions: 87
Total Answers: 101

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
;