diff --git a/types/react-aria-modal/index.d.ts b/types/react-aria-modal/index.d.ts index ae56a6deac..292d0b50dd 100644 --- a/types/react-aria-modal/index.d.ts +++ b/types/react-aria-modal/index.d.ts @@ -164,7 +164,7 @@ export interface AriaModalProps { * That also makes it easier to create your own "close modal" buttons; because you * have the function that closes the modal right there, written by you, at your disposal. */ - onExit(): any; + onExit?(): any; /** * If true, the modal dialog's focus trap will be paused.