-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathindex.d.ts
31 lines (28 loc) · 909 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React, { ButtonHTMLAttributes } from 'react';
declare module 'react-confirm-alert' {
export interface ReactConfirmAlertProps {
targetId?: string
title?: string
message?: string
buttons?: Array<{
label: string
className?: string
} & ButtonHTMLAttributes<HTMLButtonElement>>
childrenElement?: () => React.ReactNode
customUI?: (customUiOptions: {
title: string
message: string
onClose: () => void
}) => React.ReactNode
closeOnClickOutside?: boolean
closeOnEscape?: boolean
keyCodeForClose?: Array<number>
willUnmount?: () => void
onClickOutside?: () => void
onKeypressEscape?: () => void
onkeyPress?: () => void
overlayClassName?: string
}
export function confirmAlert(options: ReactConfirmAlertProps): void
export default class ReactConfirmAlert extends React.Component<ReactConfirmAlertProps> {}
}