TeaSpeak-Client/imports/shared-app/ui/react-elements/modal/Registry.d.ts
2021-02-20 18:55:36 +01:00

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;