I have a component (NoteComponent) that emits note-not-saved. This message is handled via
<template>
(...)
<NoteComponent @note-not-saved='() => noteNotSaved=true' />
(...)
</template>
noteNotSaved itself is defined in my <script> section:
<script setup lang='ts'>
(...)
const noteNotSaved = ref(false)
(...)
</script>
The application works fine, I have however a weak warning from my IDE (JetBrains GoLand or WebStorm)
Variable noteNotSaved implicitly declared
What does that exactly mean? How can noteNotSaved be more explicitly declared than that?