@forbespro/lead-agent
Version:
Lead Chat Agent React Component
26 lines (25 loc) • 663 B
JavaScript
const r = (
/**
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
*/
/** @type {unknown} */
/**
* @this {Function}
* @param {string | symbol} property
* @returns {(...parameters: Array<unknown>) => unknown}
*/
function(n) {
const o = (
/** @type {Record<string | symbol, Function>} */
// Prototypes do exist.
// type-coverage:ignore-next-line
this.constructor.prototype
), s = o[n], t = function() {
return s.apply(t, arguments);
};
return Object.setPrototypeOf(t, o), t;
}
);
export {
r as CallableInstance
};