Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

250
Vistas
Types issue in Vue 3 Typescript based Project

I am using a v-for loop in Vue component, in which a Prop options which is type of Object should be iterated.

Props are declared in separate Files.

Please see Below attachments:

Vue component :

Error on v-for loop

Props are declared in, props.ts :

Props declaration

Note: options returns an object of strings, which i am using for checkbox or radiobutton items.

How to solve this type issue?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I solved this issue by using a default value which returns an object and by removing undefined type.

options: {
   type: Object,
   required: true,
   describe: "Provide a collection of components to render in the group",
   default: function (): unknown {
     return {}
   },
},

Note: i am not sure if this is the proper solution for this Type problem.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda