File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ export { type Config as OpencodeClientConfig, OpencodeClient }
77
88export function createOpencodeClient ( config ?: Config & { directory ?: string } ) {
99 if ( ! config ?. fetch ) {
10- const customFetch : any = ( req : any ) => {
11- // @ts -ignore
12- req . timeout = false
10+ const customFetch = ( req : Request ) => {
11+ ; ( req as Request & { timeout : boolean } ) . timeout = false
1312 return fetch ( req )
1413 }
1514 config = {
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ export { type Config as OpencodeClientConfig, OpencodeClient }
77
88export function createOpencodeClient ( config ?: Config & { directory ?: string ; experimental_workspaceID ?: string } ) {
99 if ( ! config ?. fetch ) {
10- const customFetch : any = ( req : any ) => {
11- // @ts -ignore
12- req . timeout = false
10+ const customFetch = ( req : Request ) => {
11+ ; ( req as Request & { timeout : boolean } ) . timeout = false
1312 return fetch ( req )
1413 }
1514 config = {
You can’t perform that action at this time.
0 commit comments