ReplaceKeys<T, R>: Omit<T, keyof T & keyof R> & Pick<R, keyof T & keyof R>

Replace the keys in an object type with the same keys in a replacement type.

Type Parameters

  • T extends object

    The object type to modify.

  • R extends object

    The source of replacement keys.