How to pass your params. Here you can switch between object-style parameters and inline parameters.
Type: | 'object' | 'inline' |
---|---|
Required: | false |
Default: | 'inline' |
TIP
When paramsType
is set to 'object'
, pathParams
will also be set to 'object'
.
'object'
will return the params and pathParams as an object.'inline'
will return the params as comma separated params.
typescript
export async function deletePet(
{
petId,
headers,
}: {
petId: DeletePetPathParams['petId']
headers?: DeletePetHeaderParams
},
config: Partial<RequestConfig> = {},
) {
...
}
typescript
export async function deletePet(
petId: DeletePetPathParams['petId'],
headers?: DeletePetHeaderParams,
config: Partial<RequestConfig> = {}
){
...
}