react-simple-modal-controller
Version:
simple and convenient modal-controller for react
9 lines (8 loc) • 355 B
TypeScript
import { ModalInfo } from "../types/modal";
import { ModalReducerAction } from "./reducer";
export declare const emitChangeListener: () => void;
export declare const dispatchModal: (action: ModalReducerAction) => void;
export declare const registerModalStore: {
subscribe(listener: () => void): () => void;
getSnapshot(): ModalInfo<unknown>[];
};