Put in order · Vue.js course · Module 15: TypeScript & Nuxt

Vue Typing - from Basics to Advanced

Arrange TypeScript concepts in Vue from simplest to most advanced:

Items to put in order

  • InjectionKey<T> - typed provide/inject
  • defineEmits<{ event: [arg: T] }>() - typed emits
  • defineProps<{ name: string }>() - typed props
  • ref<string>('text') - typed ref

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