PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/class-is/test/fixtures/es6

Просмотр файла: Plant.js

'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;

Выполнить команду


Для локальной разработки. Не используйте в интернете!