Skip to content

Commit 03d1557

Browse files
committed
fix: TieredCache type error
1 parent 27e60dd commit 03d1557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/TieredCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class TieredCache<TData extends DataStoreData> extends NanoEmitter<Tiered
107107
id: `__tc-${this.options.id}-${i}`,
108108
// TODO:
109109
formatVersion: 1,
110-
defaultData: {},
110+
defaultData: {} as TData,
111111
engine: typeof tierOpts.engine === "function" ? tierOpts.engine() : tierOpts.engine,
112112
...(typeof tierOpts.compressionFormat === "string" ? {
113113
encodeData: (data: string) => compress(data, tierOpts.compressionFormat!, "string"),

0 commit comments

Comments
 (0)