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
When using type-fest Opaque or any other readonly symbol tag to get an opaque type, the result
type O = Opaque<string, "O">
type X = {partner_id: O};
ReturnType<typeof camelcaseKeys<X>>>
// Expected
// D: {partnerId: O}
// Actual
// D: {partnerId: {char_at, .....}}
It seems all functions for strings are also added to the return type instead of passing along the opaque type if it is a primitive.
The text was updated successfully, but these errors were encountered:
When using type-fest
Opaque
or any other readonly symbol tag to get an opaque type, the resultIt seems all functions for strings are also added to the return type instead of passing along the opaque type if it is a primitive.
The text was updated successfully, but these errors were encountered: