UNPKG

@opra/sqb

Version:

Opra SQB adapter package

10 lines (9 loc) 363 B
import { DECORATOR, MixinType } from '@opra/common'; import { Entity } from '@sqb/connect'; const oldDecorator = MixinType[DECORATOR]; MixinType[DECORATOR] = function (...args) { const filteredSources = args[0].filter(x => typeof x === 'function'); const target = oldDecorator(...args); Entity.mixin(target, ...filteredSources); return target; };