O'Reilly logo
  • Masaki Asami thinks this is interesting:

function getKeys<T>(obj: T): Keyify<T>

From

Cover of Learning TypeScript 2.x - Second Edition

Note

Mapped type helps you to declare types. You need to implement to fulfill your purpose.