refactor: unwrap ConfigMCP namespace + self-reexport (#22948)

This commit is contained in:
Kit Langton 2026-04-16 19:52:04 -04:00 • committed by GitHub
commit 5d47ea0918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
})