Recursively rewrite an object's snake_case keys to camelCase.
The result is whatever the caller says it is: pass the camelCase type it
produces (camelizeKeys<FileInfo>(raw)) instead of casting the return value.
Defaults to a plain record, so existing untyped calls keep compiling.
Non-objects pass through untouched.
Recursively rewrite an object's snake_case keys to camelCase.
The result is whatever the caller says it is: pass the camelCase type it produces (
camelizeKeys<FileInfo>(raw)) instead of casting the return value. Defaults to a plain record, so existing untyped calls keep compiling. Non-objects pass through untouched.