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

248
Views
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 answers
Answer question

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 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!