9 lines
517 B
TypeScript
9 lines
517 B
TypeScript
import { AbstractModal } from "../../../ui/react-elements/ModalDefinitions";
|
|
import { ModalConstructorArguments } from "tc-shared/ui/react-elements/modal/Definitions";
|
|
export interface RegisteredModal<T extends keyof ModalConstructorArguments> {
|
|
modalId: T;
|
|
classLoader: () => Promise<new (...args: ModalConstructorArguments[T]) => AbstractModal>;
|
|
popoutSupported: boolean;
|
|
}
|
|
export declare function findRegisteredModal<T extends keyof ModalConstructorArguments>(name: T): RegisteredModal<T> | undefined;
|