sindresorhus / camelcase-keys

Convert object keys to camel case
MIT License
679 stars 92 forks source link

type mismatch with reality #113

Closed raidenmiro closed 1 month ago

raidenmiro commented 1 year ago

If we transform an object like { ProjectID: '...' }, he becomes { projectId: '...' }. But by types, it becomes projectID.

Reproduce https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgYQIYgKYBs0GcMDSGAnrnAL5wBmUEIcA5AMbrYv4C0A1ibgwFD8YxMBjgAlDLgCuWeAF4UrHKnxFSAHgT84cAAq0AVhiYwAkgBEAXHFwwowAHYBzfuQB8gphEd24PLhtJGTl+AHow3SiAPQB+IA

sindresorhus commented 1 year ago

Duplicate of https://github.com/sindresorhus/camelcase-keys/issues/88