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

220
Views
Reaccionar error de mecanografiado: el elemento tiene implícitamente un tipo 'cualquiera'

Soy un principiante en mecanografiado y lo estoy usando en reactjs pero recibo errores. ¿Podría alguien ayudarme con la forma de resolver este problema? Element implicitly has an 'any' type because expression of type 'string' can't be used to index type .

 export const colors = { RootBackground: "#fff", } style = { [ buttonStyle ? buttonStyle : styles.button, { backgroundColor: colors[color], width }, ] }

Nota: el error está en esta línea colors[color]

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Limite color para que sea una clave de colores:

 interface Props { color: keyof typeof colors // other props }
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!