You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a function which has a return type involving an inferred generic type, the defaults on the call to the camelCaseKeys function return type incorrectly resolve to unknown:
exportfunctionhandleResponse<TextendsRecord<string,unknown>|readonlyunknown[]>(response: T,): CamelCaseKeys<T,true>{returncamelcaseKeys(response.data,{deep: true});//^^^^^^ Type 'CamelCaseKeys<T, true, unknown, unknown, unknown, unknown, "">' is not assignable to type 'CamelCaseKeys<T, true>'}
I expect the defaults to correctly resolve, as they do in the return type of my handleResponse function: CamelCaseKeys<T, true>.
The text was updated successfully, but these errors were encountered:
If I have a function which has a return type involving an inferred generic type, the defaults on the call to the
camelCaseKeys
function return type incorrectly resolve tounknown
:I expect the defaults to correctly resolve, as they do in the return type of my
handleResponse
function:CamelCaseKeys<T, true>
.The text was updated successfully, but these errors were encountered: