Skip to content

Commit 920aee0

Browse files
committed
fix: type error
1 parent bb69014 commit 920aee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DataStoreSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class DataStoreSerializer {
105105
const filteredStores = this.stores.filter(s => typeof stores === "function" ? stores(s.id) : stores.includes(s.id));
106106
for(const storeInst of filteredStores) {
107107
const encoded = Boolean(useEncoding && storeInst.encodingEnabled() && storeInst.encodeData?.[1]);
108-
const rawData = storeInst.memoryCache ? storeInst.getData() : await storeInst.loadData();
108+
const rawData = storeInst.memoryCache ? (storeInst as DataStore<{}, true>).getData() : await storeInst.loadData();
109109
const data = encoded
110110
? await storeInst.encodeData![1](JSON.stringify(rawData))
111111
: JSON.stringify(rawData);

0 commit comments

Comments
 (0)