Skip to content

Commit

Permalink
fix(core): include .clear() in the tiny map
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Feb 22, 2022
1 parent 95672f2 commit a47157c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/chunk.source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface TinyMap<K, V> {
get(key: K): V | undefined;
set(key: K, value: V): unknown;
has(key: K): boolean;
clear(): unknown;
}

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

Expand Down

0 comments on commit a47157c

Please sign in to comment.