Complete the code to declare a TypeScript variable in a Vue
<script setup lang="[1]"> const message: string = 'Hello Vue with TypeScript' </script>
To use TypeScript in Vue's <script setup> block, set lang="ts".
Complete the code to import the reactive function from Vue in a TypeScript setup.
<script setup lang="ts"> import { [1] } from 'vue' const state = reactive({ count: 0 }) </script>
The reactive function creates a reactive object in Vue.
Fix the error in the TypeScript interface declaration for props in a Vue component.
<script setup lang="ts"> interface Props { title: [1] } const props = defineProps<Props>() </script>
The title prop should be a string type to hold text.
Fill both blanks to correctly define a reactive object with typed properties in Vue with TypeScript.
<script setup lang="ts"> import { [1] } from 'vue' interface State { count: [2] } const state = reactive<State>({ count: 0 }) </script>
Use reactive to create a reactive object and number as the type for count.
Fill all three blanks to correctly define a computed property with TypeScript in Vue.
<script setup lang="ts"> import { reactive, [1] } from 'vue' const state = reactive({ count: 1 }) const doubleCount = [2](() => state.count [3] 2) </script>
Use computed to create a computed property and multiply count by 2 using *.
