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.
1 parent 153ba81 commit 1f1a68dCopy full SHA for 1f1a68d
index.d.ts
@@ -3,17 +3,19 @@ declare module '@chatwoot/react-native-widget' {
3
4
export interface ChatWootWidgetProps {
5
websiteToken: string;
6
- locale: string;
+ locale?: string;
7
baseUrl: string;
8
closeModal: () => void;
9
isModalVisible: boolean;
10
- user: {
11
- identifier: string;
12
- name: string;
13
- avatar_url: string;
14
- email: string;
15
- identifier_hash: string;
+ user?: {
+ identifier?: string;
+ name?: string;
+ avatar_url?: string;
+ email?: string;
+ identifier_hash?: string;
16
};
17
+ // This can actually be any object
18
+ customAttributes?: Record<string, unknown>;
19
}
20
21
class ChatWootWidget extends React.Component<ChatWootWidgetProps, any> {}
0 commit comments