Skip to Content
typesMapKeys

MapKeys

See source on Github

Map keys of an object to another object.

Example

MapKeys<{ oldFoo: string; oldBar: number; }, { bar: 'oldBar'; foo: 'oldFoo'; }> // { foo: string; bar: number }