GA-MO / react-confirm-alert

react component confirm dialog.
https://ga-mo.github.io/react-confirm-alert/demo/
MIT License
271 stars 105 forks source link

Missing type for afterClose #90

Open pbrink231 opened 1 year ago

pbrink231 commented 1 year ago

Current index.d.ts:

export interface ReactConfirmAlertProps { targetId?: string title?: string message?: string buttons?: Array<{ label: string className?: string } & ButtonHTMLAttributes> childrenElement?: () => React.ReactNode customUI?: (customUiOptions: { title: string message: string onClose: () => void }) => React.ReactNode closeOnClickOutside?: boolean closeOnEscape?: boolean keyCodeForClose?: Array willUnmount?: () => void onClickOutside?: () => void onKeypressEscape?: () => void onkeyPress?: () => void overlayClassName?: string }

Is missing afterClose type declaration.