refactor: unwrap ConfigMCP namespace + self-reexport (#22948)
This commit is contained in:
parent
c03fa36257
commit
5d47ea0918
1 changed files with 104 additions and 92 deletions
|
|
@ -12,7 +12,7 @@ export const { use: useKV, provider: KVProvider } = createSimpleContext({
|
|||
const [store, setStore] = createStore<Record<string, any>>()
|
||||
const filePath = path.join(Global.Path.state, "kv.json")
|
||||
|
||||
Filesystem.readJson(filePath)
|
||||
Filesystem.readJson<Record<string, any>>(filePath)
|
||||
.then((x) => {
|
||||
setStore(x)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue