UNPKG

@appbuckets/react-ui-core

Version:

Core utilities built for AppBuckets React UI Framework

17 lines (16 loc) 540 B
import * as React from 'react'; export default class NodeRegistry { nodes: Map<React.RefObject<any> | null, Set<React.Component<{}, {}, any>>>; add: (node: React.RefObject<any> | null, component: React.Component) => void; remove: ( node: React.RefObject<any> | null, component: React.Component ) => void; emit: <E extends HTMLElement = HTMLElement>( node: React.RefObject<E> | null, callback: ( node: React.RefObject<E> | null, components: Set<React.Component> | undefined ) => void ) => void; }