File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ yarn-error.log*
1010lerna-debug.log *
1111.pnpm-debug.log *
1212
13+ # WebStorm
14+ .idea /
15+
1316# Coverage directory used by tools like istanbul
1417coverage
1518* .lcov
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export class SabrUmpProcessor {
103103 } ) ;
104104 }
105105
106- public getSegmentInfo ( ) {
106+ public getSegmentInfo ( ) : Segment | undefined {
107107 return this . partialSegments . get ( this . desiredHeaderId || 0 ) ;
108108 }
109109
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ export class CacheManager {
2626 this . startGarbageCollection ( ) ;
2727 }
2828
29- public getCacheEntries ( ) {
29+ public getCacheEntries ( ) : {
30+ initSegmentCache : Map < string , CacheEntry > ;
31+ segmentCache : Map < string , CacheEntry > ;
32+ } {
3033 return {
3134 initSegmentCache : this . initSegmentCache ,
3235 segmentCache : this . segmentCache
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export function createSegmentCacheKeyFromMetadata(
8282 * @param format - The SabrFormat object.
8383 * @returns A unique string identifier for the format.
8484 */
85- export function getUniqueFormatId ( format : SabrFormat ) {
85+ export function getUniqueFormatId ( format : SabrFormat ) : string {
8686 if ( format . width )
8787 return format . itag . toString ( ) ;
8888
You can’t perform that action at this time.
0 commit comments