add generic to pass undefined type

This commit is contained in:
Lukas Hass 2022-02-03 18:47:51 +01:00
parent b6b7d1e66c
commit f8d0a91776
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178

View File

@ -89,7 +89,7 @@ export class MapStore<K, V> extends Map<K, V> implements Readable<Map<K, V>> {
}
}
return readable(initStoreValue, (set) => {
return readable<T | undefined>(initStoreValue, (set) => {
const storeByKey = this.getStore(key);
let unsubscribeDeepStore: Unsubscriber | undefined;