diff --git a/src/api.ts b/src/api.ts index 8b73cc6..a589287 100644 --- a/src/api.ts +++ b/src/api.ts @@ -38,7 +38,7 @@ export interface Service { } export interface IceCandidate { - candidate: RTCIceCandidateInit + candidate: RTCIceCandidateInit | null createdAt: number } @@ -363,7 +363,7 @@ export class RondevuAPI { iceCandidates: Record< string, Array<{ - candidate: any + candidate: RTCIceCandidateInit | null role: 'offerer' | 'answerer' peerId: string createdAt: number diff --git a/src/rondevu.ts b/src/rondevu.ts index 8a00043..9e781e7 100644 --- a/src/rondevu.ts +++ b/src/rondevu.ts @@ -824,7 +824,7 @@ export class Rondevu { answeredAt: number }> iceCandidates: Record