I'm encountering an issue with calling a function in a child component while using typescript
<notification ref="notification"></notification>
<button @click="$refs.notification.show()"></button>
Is there a solution to this problem? I keep getting an error message, my code seems to run but doesn't perform as expected
Object is of type 'unknown'
Here's the code snippet of the notification component
<script lang="ts">
export default{
methods:{
show(){
console.log('working');
}
}
}