mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 09:14:22 +01:00
fix: resolve TypeScript errors in SDK and Slack package
This commit is contained in:
@@ -184,7 +184,7 @@ export const createClient = (config: Config = {}): Client => {
|
|||||||
const { opts, url } = await beforeRequest(options)
|
const { opts, url } = await beforeRequest(options)
|
||||||
return createSseClient({
|
return createSseClient({
|
||||||
...opts,
|
...opts,
|
||||||
body: opts.body as BodyInit | null | undefined,
|
body: opts.body as any,
|
||||||
headers: opts.headers as unknown as Record<string, string>,
|
headers: opts.headers as unknown as Record<string, string>,
|
||||||
method,
|
method,
|
||||||
url,
|
url,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export async function createOpencodeServer(options?: ServerOptions) {
|
|||||||
throw new Error(`Failed to parse server url from output: ${line}`)
|
throw new Error(`Failed to parse server url from output: ${line}`)
|
||||||
}
|
}
|
||||||
clearTimeout(id)
|
clearTimeout(id)
|
||||||
resolve(match[1])
|
resolve(match[1]!)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user