mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-28 19:35:15 +00:00
28 lines
747 B
TypeScript
28 lines
747 B
TypeScript
|
declare module 'react-confirm-alert' {
|
||
|
export interface ReactConfirmAlertProps {
|
||
|
title?: string
|
||
|
message?: string
|
||
|
buttons?: Array<{
|
||
|
label: string
|
||
|
onClick: () => void
|
||
|
className?: string
|
||
|
}>
|
||
|
childrenElement?: () => React.ReactNode
|
||
|
customUI?: (customUiOptions: {
|
||
|
title: string
|
||
|
message: string
|
||
|
onClose: () => void
|
||
|
}) => React.ReactNode
|
||
|
closeOnClickOutside?: boolean
|
||
|
closeOnEscape?: boolean
|
||
|
willUnmount?: () => void
|
||
|
onClickOutside?: () => void
|
||
|
onKeypressEscape?: () => void
|
||
|
overlayClassName?: string
|
||
|
}
|
||
|
|
||
|
export function confirmAlert(options: ReactConfirmAlertProps): void
|
||
|
|
||
|
export default class ReactConfirmAlert extends React.Component<ReactConfirmAlertProps> {}
|
||
|
}
|