Complete the code to define a prop named title of type String.
<script setup lang="ts"> defineProps<{ title: [1] }>() </script>
The title prop is typed as string to accept string values.
Complete the code to type a prop named count as a Number.
<script setup lang="ts"> const props = defineProps<{ count: [1] }>() </script>
string by mistake.The count prop is typed as number to accept numeric values.
Fix the error in typing the isActive prop as a boolean.
<script setup lang="ts"> const props = defineProps<{ isActive: [1] }>() </script>
Use the primitive type boolean to correctly type boolean props. The constructor Boolean types as a wrapper object.
Fill both blanks to type props name as String and age as Number.
<script setup lang="ts"> const props = defineProps<{ name: [1], age: [2] }>() </script>
name and age.The name prop is typed as string and age as number to accept text and numeric values respectively.
Fill all three blanks to type props title as String, visible as Boolean, and items as Array.
<script setup lang="ts"> const props = defineProps<{ title: [1], visible: [2], items: [3] }>() </script>
Array with Object.The title prop is typed as string, visible as boolean, and items as Array to accept text, true/false, and list values respectively.