UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

27 lines (26 loc) 677 B
"use client"; 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(o) { const n = ( /** @type {Record<string | symbol, Function>} */ // Prototypes do exist. // type-coverage:ignore-next-line this.constructor.prototype ), s = n[o], t = function() { return s.apply(t, arguments); }; return Object.setPrototypeOf(t, n), t; } ); export { r as CallableInstance };