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

138
Views
No se puede leer una propiedad de un tipo que es una unión de dos tipos

Tengo dos tipos definidos:

 type Filter_Facets_StoreFacetBoolean_Fragment = { key: string label: string values: Array<{ label: string value: string selected: boolean quantity: number }> } type Filter_Facets_StoreFacetRange_Fragment = { key: string label: string min: { selected: number absolute: number }, max: { selected: number absolute: number } }

y tengo otro tipo que esta hecho de estos dos:

 export type Filter_FacetsFragment = Filter_Facets_StoreFacetBoolean_Fragment | Filter_Facets_StoreFacetRange_Fragment

En el código cuando traté de usar Filter_FacetsFragment , la depuración mecanografiada me da el siguiente error:

La propiedad 'valores' no existe en el tipo 'Filter_FacetsFragment'.

La propiedad 'valores' no existe en el tipo 'Filter_Facets_StoreFacetRange_Fragment'.

¿Cómo corregir este error? Gracias por adelantado.

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