Skip to content

Commit 5a03e41

Browse files
committed
state: RenderState -> AlertDataType
1 parent 82f18ae commit 5a03e41

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

index.d.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export interface DropdownAlertProps {
4141
sensitivity?: number;
4242
defaultContainer?: object | number;
4343
defaultTextContainer?: object | number;
44-
renderImage?(props: DropdownAlertProps, state: RenderState): ReactNode;
45-
renderCancel?(props: DropdownAlertProps, state: RenderState): ReactNode;
46-
renderTitle?(props: DropdownAlertProps, state: RenderState): ReactNode;
47-
renderMessage?(props: DropdownAlertProps, state: RenderState): ReactNode;
44+
renderImage?(props: DropdownAlertProps, state: AlertDataType): ReactNode;
45+
renderCancel?(props: DropdownAlertProps, state: AlertDataType): ReactNode;
46+
renderTitle?(props: DropdownAlertProps, state: AlertDataType): ReactNode;
47+
renderMessage?(props: DropdownAlertProps, state: AlertDataType): ReactNode;
4848
testID?: string;
4949
accessibilityLabel?: string;
5050
accessible?: boolean;
@@ -53,14 +53,6 @@ export interface DropdownAlertProps {
5353
onTap?(data: AlertDataType): void;
5454
}
5555

56-
type RenderState = {
57-
type: string,
58-
title: string,
59-
message: string,
60-
payload: any,
61-
interval: number
62-
}
63-
6456
export type DropdownAlertType =
6557
| 'info'
6658
| 'warn'

0 commit comments

Comments
 (0)