unstable typescript

This commit is contained in:
tmshv committed 2019-10-14 23:42:43 +03:00
1 parent 274e1e7fc0
commit b35e4e36e2
19 files changed
+658 -286

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const db = require('./db')
const store = new Map()
export default class Data {
static setStore(Class, collection) {
store.set(Class, collection)
}
static getStore(Class) {
return store.get(Class)
}
static getCollection(name) {
return db.collection(name)
}
}