Question · JavaScript and TypeScript course · Module 7: Advanced TypeScript

What Does Record<K, T> Do

What does Record<K, T> do in TypeScript?

Answer options

  • Records the change history of type T
  • Creates an object type with keys of type K and values of type T
  • Registers type T in the TypeScript type system
  • Copies properties from K to T

You can check the correct answer by solving this task in the CodeWorlds game.