Novage / p2p-media-loader

An open-source engine for P2P streaming of live and on demand video directly in a web browser HTML page
https://novage.com.ua/p2p-media-loader/demo.html
Apache License 2.0
1.41k stars 311 forks source link

Fix/console-warnings #331

Closed DimaDemchenko closed 6 months ago

DimaDemchenko commented 6 months ago

Interface CustomEvent was created due to type error:

Argument of type '(event: { detail: { code: unknown; };}) => void' is not assignable to parameter of type 'EventListener | ((a: Event) => any) | null'.\n Type '(event: { detail: { code: unknown; };}) => void' is not assignable to type 'EventListener'.\n Types of parameters 'event' and 'evt' are incompatible.\n Property 'detail' is missing in type 'Event' but required in type '{ detail: { code: unknown; }; }'.