Question · Vue.js course · Module 15: TypeScript & Nuxt

InjectionKey from Vue

What does InjectionKey<T> provide in the provide/inject system?

Answer options

  • Automatically generates default values
  • Ensures type safety between provide and inject
  • Creates a global singleton for data
  • Encrypts data transmitted between components

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