UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge

16 lines (15 loc) 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MergeWithValues = (data) => { return (Metatype) => { const Type = class extends Metatype { constructor(...args) { super(...args); } }; const token = Metatype.name + JSON.stringify(data); Object.defineProperty(Type, 'name', { value: token }); Object.assign(Type.prototype, data); return Type; }; };