@essential-js/ui
Version:
EssentialJS UI
21 lines (17 loc) • 680 B
TypeScript
/************
Processor: ts
************/
// FILE: binder.d.ts
declare namespace ns_binder {
/***
* Executes a useEffect hook binging the event defined in all
* objects passed
*
* @param {array} objects Objects to bind
* @param {function} onBinder function to be executed when the event is fired
* @param {string} event the event to be listened, by default is event change
*/
function useBinder(objects: any[], onBinder: () => void, event?: string): void;
}
export import useBinder = ns_binder.useBinder;
export declare const hmr: {on: (event: string, listener: any) => void, off: (event: string, listener: any) => void };