fix: type error

This commit is contained in:
Adam
2026-01-22 22:02:04 -06:00
parent 4afb46f571
commit 2a2d800ac4
2 changed files with 38 additions and 9 deletions

View File

@@ -101,15 +101,13 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
})
}
const set: (...args: Parameters<Setter>) => ReturnType<Setter> = (...args) => {
return current()[1](...args)
}
return {
get data() {
return current()[0]
},
set,
get set(): Setter {
return current()[1]
},
get status() {
return current()[0].status
},