Skip to content

Commit da19c5d

Browse files
authored
chore: Add typescript typings
chore: Add typescript typings
2 parents 7c0bff4 + 1f1a68d commit da19c5d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

index.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)