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 7c0bff4 + 1f1a68d commit da19c5dCopy full SHA for da19c5d
index.d.ts
@@ -0,0 +1,24 @@
1
+declare module '@chatwoot/react-native-widget' {
2
+ import React from 'react';
3
+
4
+ export interface ChatWootWidgetProps {
5
+ websiteToken: string;
6
+ 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;
16
+ };
17
+ // This can actually be any object
18
+ customAttributes?: Record<string, unknown>;
19
+ }
20
21
+ class ChatWootWidget extends React.Component<ChatWootWidgetProps, any> {}
22
+ export default ChatWootWidget;
23
+}
24
0 commit comments