Data::getStore generic

This commit is contained in:
tmshv committed 2019-10-15 00:42:35 +03:00
1 parent 717540682d
commit c038ef882b
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ export default class Data {
store.set(key, collection)
}
static getStore(key: string): Collection {
static getStore<T>(key: string): Collection<T> {
return store.get(key)
}