I'm having trouble accessing the properties of my sent object from my parent component.
In my child component, I would like to access "found" in the object "lettersState" (see code below). When I try to access "found" in my child component. refer the error message
Property 'found' does not exist on type 'Object'.
parent component :
const state = reactive({
guesses: ['', '', '', '', '', ''],
solution: '',
currentRow: 0,
lettersState: {
found: [] as string[],
miss: [] as string[],
hint: [] as string[],
}
})
<template>
<Keyboard @handleKeyboard="handleKeyboard" :lettersState="state.lettersState" />
</template>
child :
const props = defineProps<{lettersState:Object}>()
console.log(props.lettersState.found)