Skip to content

Instantly share code, notes, and snippets.

View grindfuk's full-sized avatar

Fuk Yeung grindfuk

View GitHub Profile
@grindfuk
grindfuk / interface.js
Created April 27, 2016 16:45
Node.js ES6 Class Interface
'use strict';
class NotImplementedException extends Error {
}
class InvalidInitialization extends Error {
}
function abc(cls, options) {
let iname = options ? options.interfaceName : 'Interface';
let metaData = {