diff --git a/src/context/ModalContext.ts b/src/context/ModalContext.ts index 012ad350..36a2f14d 100644 --- a/src/context/ModalContext.ts +++ b/src/context/ModalContext.ts @@ -1,3 +1,16 @@ import React from 'react'; +import type { ModalView } from 'src/components/ModalView'; -export const ModalContext = React.createContext({}); +export type ModalContextType = Partial< + Pick< + ModalView, + | 'getEmitterRef' + | 'setVisibility' + | 'setEnableSwipeGesture' + | 'setIsModalInPresentation' + > & { + getModalRef: ModalView['_handleGetModalRef']; + } +>; + +export const ModalContext = React.createContext({});