We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0da0bf1 + 0183bd6 commit 2684b63Copy full SHA for 2684b63
index.d.ts
@@ -62,6 +62,12 @@ export interface DropdownAlertProps {
62
| 'error'
63
| 'custom'
64
| 'success'
65
+ export type CloseActionType =
66
+ | 'automatic'
67
+ | 'programmatic'
68
+ | 'tap'
69
+ | 'pan'
70
+ | 'cancel'
71
export default class DropdownAlert extends React.Component<
72
DropdownAlertProps
73
> {
@@ -72,13 +78,11 @@ export interface DropdownAlertProps {
78
payload?: object,
79
interval?: number,
74
80
): void
81
+ closeAction(
82
+ action?: CloseActionType,
83
+ onDone?: () => void,
84
+ ): void
75
85
}
76
-export type CloseActionType =
77
- | 'automatic'
- | 'programmatic'
- | 'tap'
- | 'pan'
- | 'cancel'
86
export type AlertDataType = {
87
type: DropdownAlertType
88
title: string
0 commit comments