From 8be2c8d9b4794c822089b77082b9f4193954d09c Mon Sep 17 00:00:00 2001 From: voluntas Date: Wed, 18 Sep 2024 17:57:34 +0900 Subject: [PATCH] =?UTF-8?q?biome=20lint=20=E3=81=AE=E5=AF=BE=E5=BF=9C?= =?UTF-8?q?=E3=82=92=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/sdk/src/base.ts | 10 ++++------ packages/sdk/src/types.ts | 6 ++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/sdk/src/base.ts b/packages/sdk/src/base.ts index edaa5a9d..7109c6e1 100644 --- a/packages/sdk/src/base.ts +++ b/packages/sdk/src/base.ts @@ -91,8 +91,7 @@ export default class ConnectionBase { /** * PeerConnection に渡す configuration */ - // biome-ignore lint/suspicious/noExplicitAny: - constraints: any + constraints: unknown /** * デバッグフラグ */ @@ -1919,10 +1918,9 @@ export default class ConnectionBase { return stats } const reports = await this.pc.getStats() - // biome-ignore lint/complexity/noForEach: RTCStatsReport であって Array ではない - reports.forEach((s) => { - stats.push(s as RTCStatsReport) - }) + for (const [_, s] of reports.entries()) { + stats.push(s) + } return stats } diff --git a/packages/sdk/src/types.ts b/packages/sdk/src/types.ts index d30f03e9..634c619a 100644 --- a/packages/sdk/src/types.ts +++ b/packages/sdk/src/types.ts @@ -349,8 +349,7 @@ export type TimelineEventLogType = 'websocket' | 'datachannel' | 'peerconnection export interface SignalingEvent extends Event { transportType: TransportType - // biome-ignore lint/suspicious/noExplicitAny: - data?: any + data?: unknown } export interface DataChannelMessageEvent extends Event { @@ -364,8 +363,7 @@ export interface DataChannelEvent extends Event { export interface TimelineEvent extends Event { logType: TimelineEventLogType - // biome-ignore lint/suspicious/noExplicitAny: - data?: any + data?: unknown dataChannelId?: number | null dataChannelLabel?: string }