videosdk-web icon indicating copy to clipboard operation
videosdk-web copied to clipboard

avoid noImplicitAny

Open hirotoKirimaru opened this issue 9 months ago • 0 comments

I have configured the TypeScript compiler with strict options. However, I am encountering an issue where I'm unable to utilize zoom/videosdk version 1.10.0 due to these settings.

Therefore, I suggest that we explicitly set the return type for our functions to resolve this issue.

Error: node_modules/@zoom/videosdk/dist/types/event-callback.d.ts:1737:25 - error TS7010: 'event_subsession_invite_to_back_to_main_session', which lacks return-type annotation, implicitly has an 'any' return type.

1737 export declare function event_subsession_invite_to_back_to_main_session(payload: {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: node_modules/@zoom/videosdk/dist/types/event-callback.d.ts:1756:25 - error TS7010: 'event_subsession_user_update', which lacks return-type annotation, implicitly has an 'any' return type.

1756 export declare function event_subsession_user_update(payload: {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: node_modules/@zoom/videosdk/dist/types/event-callback.d.ts:1803:25 - error TS7010: 'event_subsession_broadcast_voice', which lacks return-type annotation, implicitly has an 'any' return type.

1803 export declare function event_subsession_broadcast_voice(payload: {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hirotoKirimaru avatar Apr 30 '24 08:04 hirotoKirimaru