functional

This commit is contained in:
2022-05-26 19:59:18 -05:00
parent 4c97aa1f88
commit be1750944c
9 changed files with 614 additions and 451 deletions

View File

@@ -1,25 +1,7 @@
import { setFlag } from "./flags";
import { globalStorage, initGlobalCache } from './storage'
function test2() {
let storage = globalStorage()
storage.set({
a: 'aaaaa',
b: 'bbbbb',
c: 'ccccc',
})
}
function test() {
setFlag('dir', './data')
initGlobalCache({
a: 'aaa',
b: 'bbb',
})
let storage = globalStorage()
console.log(storage.get())
test2()
console.log(storage.get())
}
test()
export { setFlag } from './flags'
export {
globalStorage,
guildStorage,
initGlobalCache,
initGuildCache,
} from './storage'