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.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too