mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
fix: type error
This commit is contained in:
parent
4afb46f571
commit
2a2d800ac4
2 changed files with 38 additions and 9 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue