Fix type errors
This commit is contained in:
6
src/@types/global.d.ts
vendored
6
src/@types/global.d.ts
vendored
@@ -28,12 +28,6 @@ declare global {
|
|||||||
OLM_OPTIONS: Record<string, string>;
|
OLM_OPTIONS: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeScript doesn't know about the experimental setSinkId method, so we
|
|
||||||
// declare it ourselves
|
|
||||||
interface MediaElement extends HTMLVideoElement {
|
|
||||||
setSinkId: (id: string) => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface HTMLElement {
|
interface HTMLElement {
|
||||||
// Safari only supports this prefixed, so tell the type system about it
|
// Safari only supports this prefixed, so tell the type system about it
|
||||||
webkitRequestFullscreen: () => void;
|
webkitRequestFullscreen: () => void;
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ import {
|
|||||||
SummaryStatsReport,
|
SummaryStatsReport,
|
||||||
CallFeedReport,
|
CallFeedReport,
|
||||||
} from "matrix-js-sdk/src/webrtc/stats/statsReport";
|
} from "matrix-js-sdk/src/webrtc/stats/statsReport";
|
||||||
import { setSpan } from "@opentelemetry/api/build/esm/trace/context-utils";
|
|
||||||
|
|
||||||
import { ElementCallOpenTelemetry } from "./otel";
|
import { ElementCallOpenTelemetry } from "./otel";
|
||||||
import { ObjectFlattener } from "./ObjectFlattener";
|
import { ObjectFlattener } from "./ObjectFlattener";
|
||||||
@@ -446,7 +445,7 @@ export class OTelGroupCallMembership {
|
|||||||
const type = OTelStatsReportType.SummaryReport;
|
const type = OTelStatsReportType.SummaryReport;
|
||||||
const data = ObjectFlattener.flattenSummaryStatsReportObject(statsReport);
|
const data = ObjectFlattener.flattenSummaryStatsReportObject(statsReport);
|
||||||
if (this.statsReportSpan.span === undefined && this.callMembershipSpan) {
|
if (this.statsReportSpan.span === undefined && this.callMembershipSpan) {
|
||||||
const ctx = setSpan(
|
const ctx = opentelemetry.trace.setSpan(
|
||||||
opentelemetry.context.active(),
|
opentelemetry.context.active(),
|
||||||
this.callMembershipSpan,
|
this.callMembershipSpan,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user