cometchat/chat-sdk-javascript

Typescript compilation error (Angular 9)

Closed this issue · 1 comments

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

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.