@magicbell/core
Version:
Official MagicBell API wrapper
10 lines (9 loc) • 301 B
TypeScript
/**
* Decorator factory to wrap the first argument of the method decorated with
* this.
*
* @example
* @wrap('notification')
* set(json) { Object.assign(this, json) }
*/
export default function wrap(wrapKey: string): (target: any, propertyKey: string, descriptor?: PropertyDescriptor) => void;