Skip to content

Instantly share code, notes, and snippets.

@reharik
Created July 3, 2015 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reharik/fd01eb2ff45adfacc391 to your computer and use it in GitHub Desktop.
Save reharik/fd01eb2ff45adfacc391 to your computer and use it in GitHub Desktop.
example of class wrapped in dependency wrapper
module.exports = function(TestClassBase, pointlessDependency, logger) {
return class TestClass extends TestClassBase {
constructor(someOtherProp) {
super();
this._someOtherProp = someOtherProp;
//do something here
}
setSomeOtherProp(val) {
this._someOtherProp = val;
}
getSomeOtherPropVal(){
return this._someOtherProp;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment