From 4a04ad63c04856c88190d29ca016e09917f90417 Mon Sep 17 00:00:00 2001 From: DimaDemchenko Date: Mon, 18 Nov 2024 13:30:47 +0200 Subject: [PATCH] fix: jsdoc --- packages/p2p-media-loader-core/src/types.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/p2p-media-loader-core/src/types.ts b/packages/p2p-media-loader-core/src/types.ts index ed9dc089..ecb3efde 100644 --- a/packages/p2p-media-loader-core/src/types.ts +++ b/packages/p2p-media-loader-core/src/types.ts @@ -379,7 +379,7 @@ export type StreamConfig = { * Optional function to validate a P2P segment before fully integrating it into the playback buffer. * @param url URL of the segment to validate. * @param byteRange Optional byte range of the segment. - * @param data: Downloaded segment data. + * @param data Downloaded segment data. * @returns A promise that resolves with a boolean indicating if the segment is valid. * * @default @@ -387,7 +387,11 @@ export type StreamConfig = { * validateP2PSegment: undefined * ``` */ - validateP2PSegment?: (url: string, byteRange: ByteRange | undefined, data: ArrayBuffer) => Promise; + validateP2PSegment?: ( + url: string, + byteRange: ByteRange | undefined, + data: ArrayBuffer, + ) => Promise; /** * Optional function to customize the setup of HTTP requests for segment downloads.