Closed vasylynkar closed 3 weeks ago
Thank you for reporting this error. We are working on switching the SDK into pure TypeScript instead of JavaScript with some TypeScript definitions, which should fix this problem. In the meantime, are you able to use the skipLibCheck flag to remove this error when you compile your project?
Thanks for the fast answer!
https://github.com/millicast/millicast-sdk/blob/8072bf86823439f83e92fcb4ee601c0a043d2a04/packages/millicast-sdk/src/types/index.d.ts#L795
Error: TS1016: A required parameter cannot follow an optional parameter.
createRTCPeer(config?: PeerConnectionConfig, mode: "Publisher" | "Viewer"): Promise<void>;
Steps to Reproduce:
Expected Behavior: The TypeScript code should compile without any errors.
Actual Behavior: The TypeScript compiler throws the error