unstable typescript
This commit is contained in:
1 parent
274e1e7fc0
commit
b35e4e36e2
19 files changed
+658
-286
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user