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

240
Views
error al intentar enviar una matriz de números

Tengo que corregir un error que faltan algunos datos al enviar el formulario. Tengo esta interfaz mecanografiada

 _id: string name: string coords?: number[] createdAt?: Date updatedAt?: Date deletedAt?: Date }

estos son mis accesorios:

 props: { data: { type: Object as PropType<Location>, default: () => ({ _id: null, name: '', createdAt: '', updatedAt: '' }) } },

y así es como estoy creando el v-model:

 const location = reactive({ ...props.data } as Location) const rules = { name: { required }, coords: { required } } const v$ = useVuelidate(rules, location)

Y estoy teniendo un error como este

 Types of property 'name' are incompatible. Type 'string' is not assignable to type 'Ref<any>'. 76 | coords: { required } 77 | } > 78 | const v$ = useVuelidate(rules, location)
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Como se requieren cables en las reglas, establezca un valor predeterminado o elimine las propiedades opcionales en la interfaz de ubicación.

about 4 years ago · Santiago Gelvez 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!