UNPKG

react-popup-manager

Version:

Manage react popups, Modals, Lightboxes, Notifications, etc. easily

11 lines (10 loc) 438 B
/// <reference types="react" /> import { OpenPopupOptions } from './__internal__/popupManagerInternal'; import { popupInstance } from './popupsDef'; declare type Constructable<T> = new (...args: []) => T; export interface PopupManager { open<T>(componentClass: React.ComponentType<T>, popupProps?: OpenPopupOptions<T>): popupInstance; closeAll(): void; } export declare const PopupManager: Constructable<PopupManager>; export {};