UNPKG

react-dynamic-virtual-tree

Version:

Library for visualizing nested lists with dynamically changing sizes.

8 lines (7 loc) 325 B
export type ListenerCallback<T> = (value: T) => void; export declare class Listener { listeners: Record<string, ListenerCallback<any>[]>; protected onListen<T>(key: string, callback: ListenerCallback<T>): () => void; protected dispatch<T>(key: string, value: T): void; protected removeAllListeners(): void; }