ReplaceKeys

Hard

Write ReplaceKeys<T, K, V> which replaces all keys of type K with type V in object T.

Examples:

Input 1: type Result = ReplaceKeys<{ a: string, b: number }, "a", boolean>
Output 1: { a: boolean, b: number }
Output
Run your code to see results.