ui-framework-jps
Version:
A simple UI framework for state management and UI components
10 lines (9 loc) • 347 B
TypeScript
import { RequestCallBackFunction } from "./Types";
export declare class CallbackRegistry {
private static _instance;
private callbacks;
private constructor();
static getInstance(): CallbackRegistry;
addRegisterCallback(id: string, fn: RequestCallBackFunction): void;
getCallbackById(id: string): RequestCallBackFunction;
}