Skip to content

Commit a47157c

Browse files
committed
fix(core): include .clear() in the tiny map
1 parent 95672f2 commit a47157c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/chunk.source.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface TinyMap<K, V> {
1818
get(key: K): V | undefined;
1919
set(key: K, value: V): unknown;
2020
has(key: K): boolean;
21+
clear(): unknown;
2122
}
2223

2324
/**
@@ -27,7 +28,7 @@ interface TinyMap<K, V> {
2728
*
2829
* This will also handle joining of consecutive requests, even when it is semi consecutive
2930
*/
30-
export abstract class ChunkSourceBase implements ChunkSource {
31+
export class ChunkSourceBase implements ChunkSource {
3132
/** By default create a new cache for every chunk source */
3233
static DefaultChunkCache = (): TinyMap<number, DataView> => new Map<number, DataView>();
3334

0 commit comments

Comments
 (0)