Skip to content

Commit

Permalink
Merge pull request #562 from shiguredo/feature/fix-biome
Browse files Browse the repository at this point in the history
biome lint の対応をする
  • Loading branch information
voluntas authored Sep 20, 2024
2 parents d0c3001 + 8be2c8d commit b06129b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 4 additions & 6 deletions packages/sdk/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ export default class ConnectionBase {
/**
* PeerConnection に渡す configuration
*/
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
constraints: any
constraints: unknown
/**
* デバッグフラグ
*/
Expand Down Expand Up @@ -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
}

Expand Down
6 changes: 2 additions & 4 deletions packages/sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ export type TimelineEventLogType = 'websocket' | 'datachannel' | 'peerconnection

export interface SignalingEvent extends Event {
transportType: TransportType
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
data?: any
data?: unknown
}

export interface DataChannelMessageEvent extends Event {
Expand All @@ -364,8 +363,7 @@ export interface DataChannelEvent extends Event {

export interface TimelineEvent extends Event {
logType: TimelineEventLogType
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
data?: any
data?: unknown
dataChannelId?: number | null
dataChannelLabel?: string
}
Expand Down

0 comments on commit b06129b

Please sign in to comment.