UNPKG

@magicbell/core

Version:

Official MagicBell API wrapper

9 lines (8 loc) 304 B
/** * Decorator factory to unwrap the arguments of the method decorated with this. * * @example * @unwrap('notification') * set(json = {}) { Object.assign(this, json) } */ export default function unwrap(wrapKey: string): (target: any, propertyKey: string, descriptor?: PropertyDescriptor) => void;