Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const withIs = require('../../..');
|
||||
const Plant = require('./Plant');
|
||||
|
||||
class Algae extends Plant {
|
||||
constructor() {
|
||||
super('algae');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = withIs(Algae, {
|
||||
className: 'Algae',
|
||||
symbolName: '@org/package/Algae',
|
||||
});
|
||||
module.exports.WrappedClass = Algae;
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const withIs = require('../../..');
|
||||
|
||||
class Animal {
|
||||
constructor(type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
getType() {
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = withIs(Animal, {
|
||||
className: 'Animal',
|
||||
symbolName: '@org/package/Animal',
|
||||
});
|
||||
module.exports.WrappedClass = Animal;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const withIs = require('../../..');
|
||||
const Animal = require('./Animal');
|
||||
|
||||
class Mammal extends Animal {
|
||||
constructor() {
|
||||
super('mammal');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = withIs(Mammal, {
|
||||
className: 'Mammal',
|
||||
symbolName: '@org/package/Mammal',
|
||||
});
|
||||
module.exports.WrappedClass = Mammal;
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const withIs = require('../../..');
|
||||
|
||||
class Plant {
|
||||
constructor(type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
getType() {
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = withIs(Plant, {
|
||||
className: 'Plant',
|
||||
symbolName: '@org/package/Plant',
|
||||
});
|
||||
module.exports.WrappedClass = Plant;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
Animal: require('./Animal'),
|
||||
Plant: require('./Plant'),
|
||||
Mammal: require('./Mammal'),
|
||||
Algae: require('./Algae'),
|
||||
};
|
||||
Reference in new issue
Block a user