Skip to content

Commit 1f1a68d

Browse files
committed
add custom attributes and change optionals
1 parent 153ba81 commit 1f1a68d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

index.d.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ declare module '@chatwoot/react-native-widget' {
33

44
export interface ChatWootWidgetProps {
55
websiteToken: string;
6-
locale: string;
6+
locale?: string;
77
baseUrl: string;
88
closeModal: () => void;
99
isModalVisible: boolean;
10-
user: {
11-
identifier: string;
12-
name: string;
13-
avatar_url: string;
14-
email: string;
15-
identifier_hash: string;
10+
user?: {
11+
identifier?: string;
12+
name?: string;
13+
avatar_url?: string;
14+
email?: string;
15+
identifier_hash?: string;
1616
};
17+
// This can actually be any object
18+
customAttributes?: Record<string, unknown>;
1719
}
1820

1921
class ChatWootWidget extends React.Component<ChatWootWidgetProps, any> {}

0 commit comments

Comments
 (0)