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
In my tests I'm using the CamelCasedPropertiesDeep to convert the returns of an API, and we have a property that returns an object with some languages and their respective translations, we type this return as title: Record<string, string> but when we use the CamelCasedPropertiesDeep it returns the type as title: {} and when we try to get the language like: title[acceptedLanguage] we got a error TS (7053).
In my tests I'm using the
CamelCasedPropertiesDeep
to convert the returns of an API, and we have a property that returns an object with some languages and their respective translations, we type this return astitle: Record<string, string>
but when we use theCamelCasedPropertiesDeep
it returns the type astitle: {}
and when we try to get the language like:title[acceptedLanguage]
we got a error TS (7053).Example Used:
Is this an error on the type or can we use another type instead of Record to type this title?
The text was updated successfully, but these errors were encountered: