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 change-case/keys I would love for the resulting object to be typed correctly without having to do an explicit cast. Currently all transformations produce unknown.
import{camelCase}from"change-case/keys"importtype{CamelCasedProperties}from'type-fest';constsnake_cased={foo_bar: 1}// Preferably the cast could be left off on the line belowconstcamelCased=camelCase(snake_cased)asCamelCasedProperties<typeofsnake_cased>console.log(camelCased.fooBar)// => 1
The text was updated successfully, but these errors were encountered:
I think I closed a past issue on the complexity on typing these, but I think it could be good to have available. I would accept a PR if anyone wants to attempt this.
When using
change-case/keys
I would love for the resulting object to be typed correctly without having to do an explicit cast. Currently all transformations produceunknown
.The text was updated successfully, but these errors were encountered: