mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
fix: Fix error due to Typescript 3.5.1
decamelizeKeys is defined to return Object, but Typescript 3.5.1 is a bit stricter about Object and indexing properties. The correct fix would need to be done in the type definition of humps.
This commit is contained in:
parent
8f5fec52ce
commit
5474f0658f
@ -28,7 +28,7 @@ function defaultRequest(service: any, { body, query, sudo, method }) {
|
||||
headers,
|
||||
method: (method === 'stream') ? 'get' : method,
|
||||
onProgress: (method === 'stream') ? () => {} : undefined,
|
||||
searchParams: stringify(decamelizeKeys(query || {}), { arrayFormat: 'bracket' }),
|
||||
searchParams: stringify(decamelizeKeys(query || {}) as any, { arrayFormat: 'bracket' }),
|
||||
prefixUrl: service.url,
|
||||
json: typeof body === 'object' ? decamelizeKeys(body, skipAllCaps) : body,
|
||||
rejectUnauthorized: service.rejectUnauthorized,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user