Every time I attempt to retrieve a value using typescript, I keep encountering the same error message:
Unsafe return of an
any
typed value.
This issue arises from a function within the @update method of a select element.
<q-select
outlined
class="q-mb-lg"
:options="rolesOptions"
option-value="value"
option-label="label"
:label="$t('Users.form.role')"
v-model="fieldStates.role"
@update:model-value="val => test(val)"
/>
The following code snippet represents my attempted return statement in which I anticipate receiving the value from an option:
const test = ({value} : {value: any}) => {
console.log('test: ', value)
return value
}