cometchat / chat-sdk-javascript

Voice & Video Calling and Text Chat SDK for JavaScript/Web
Other
30 stars 24 forks source link

Typescript compilation error (Angular 9) #68

Closed antoine-souesme closed 4 years ago

antoine-souesme commented 4 years ago

Hi,

After installing the package, when building the app or serving I get this error:

ERROR in node_modules/@cometchat-pro/chat/CometChat.d.ts:101:21 - error TS7010: 'getInstance', which lacks return-type annotation, implicitly has an 'any' return type.

101     export function getInstance(appId?: string);
                        ~~~~~~~~~~~
node_modules/@cometchat-pro/chat/CometChat.d.ts:1773:9 - error TS7008: Member 'setGUID' implicitly has an 'any' type.

1773         setGUID
             ~~~~~~~

Am I doing something wrong ?

version 2.0.7

mayur-bhandari commented 4 years ago

Hello @antoine-souesme-needone ,

We have made the changes in our type(.d.ts) file in the latest version (v2.0.8). The app should build properly on the latest version.