add generic to pass undefined type
This commit is contained in:
@@ -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);
|
const storeByKey = this.getStore(key);
|
||||||
|
|
||||||
let unsubscribeDeepStore: Unsubscriber | undefined;
|
let unsubscribeDeepStore: Unsubscriber | undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user