feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749)
This commit is contained in:
parent
8aa0f9fe95
commit
bd29004831
8 changed files with 22 additions and 10 deletions
|
|
@ -16,7 +16,10 @@ export function createSdkForServer({
|
|||
|
||||
return createOpencodeClient({
|
||||
...config,
|
||||
headers: { ...config.headers, ...auth },
|
||||
headers: {
|
||||
...(config.headers instanceof Headers ? Object.fromEntries(config.headers.entries()) : config.headers),
|
||||
...auth,
|
||||
},
|
||||
baseUrl: server.url,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue