UNPKG

reblendjs

Version:

ReblendJs uses Reactjs pradigm to build UI components, with isolated state for each components.

9 lines (8 loc) 457 B
import * as ReblendTyping from 'reblend-typing'; /** * Wraps an event callback function, ensuring that the event callback is always called. * * @param {((e: Event) => any) | string} [eventCallback] - The event callback to be wrapped. * @returns {(e: Event) => void} A function that invokes the event callback. */ export declare function fn(component: ReblendTyping.Component<any, any>, eventCallback: ((e: Event) => any) | string): (e: Event) => void;