Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
Problema al devolver un valor con mecanografiado

Estoy tratando de devolver un valor con mecanografiado, pero siempre termino recibiendo el siguiente error:

Devolución no segura de any valor escrito.

Este error se genera a través de una función en el @update de un select.

 <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 => teste(val)" />

Este aquí sería mi retorno, el cual espero recibir el valor de una opción.

 const teste = ({value} : {value: any}) => { console.log('test: ', value) return value }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede usar genéricos para evitar el uso de any .

 const teste = <T>({value} : {value: T}) => { console.log('test: ', value) return value }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!