File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,8 +133,8 @@ type GetQueryParams<Operation> = Operation extends {
133133 | { params : Operation [ 'parameters' ] [ 'query' ] & PlainObject }
134134 | { query : Operation [ 'parameters' ] [ 'query' ] & PlainObject }
135135 : {
136- params ?: Operation [ 'parameters' ] [ 'query' ] & PlainObject ;
137- query ?: Operation [ 'parameters' ] [ 'query' ] & PlainObject ;
136+ params ?: ( Operation [ 'parameters' ] [ 'query' ] & PlainObject ) | PlainObject ;
137+ query ?: ( Operation [ 'parameters' ] [ 'query' ] & PlainObject ) | PlainObject ;
138138 }
139139 : { params ?: PlainObject ; query ?: PlainObject } ;
140140
@@ -145,7 +145,11 @@ type GetHeaders<Operation> = Operation extends {
145145}
146146 ? HasRequiredProperties < Operation [ 'parameters' ] [ 'header' ] > extends true
147147 ? { headers : Operation [ 'parameters' ] [ 'header' ] & PlainObject }
148- : { headers ?: Operation [ 'parameters' ] [ 'header' ] & PlainObject }
148+ : {
149+ headers ?:
150+ | ( Operation [ 'parameters' ] [ 'header' ] & PlainObject )
151+ | PlainObject ;
152+ }
149153 : { headers ?: PlainObject } ;
150154
151155type GetMethodProp < Methods , Method > = 'get' extends Methods
You can’t perform that action at this time.
0 commit comments