ModalProp
type ModalProp<P extends ModalfyParams, Props = unknown> = Props & {
modal: UsableModalProp<P>
}
// ------------------ INTERNAL TYPES ------------------ //
type ModalfyParams = { [key: string]: any }
interface UsableModalProp<
P extends ModalfyParams,
M extends Exclude<keyof P, symbol | number> = Exclude<
keyof P,
symbol | number
>
> {
closeAllModals: () => void
closeModal: (modalName?: M) => void
closeModals: (modalName: M) => boolean
currentModal: M | null
openModal: (modalName: M, params?: P[M]) => void
}Unexpected error with integration github-files: Integration is not authenticated with GitHub
API reference
closeAllModals
closeAllModals closeModal
closeModal closeModals
closeModals currentModal
currentModal openModal
openModal Last updated