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

298
Vistas
Map typescript parameter: Binding element 'columns' implicitly has an 'any' type

I have this code taken from a JavaScript post and I would like to use it in TypeScript but I get an error in function ContactProps({ columns, data })

The error is:

Binding element 'columns' implicitly has an 'any' type.

and

Binding element 'data ' implicitly has an 'any' type.

function ContactProps({ columns, data }) {
  // Use the state and functions returned from useTable to build your UI
  const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow } =
    useTable({
      columns,
      data,
    });
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This one might solve your issue

 function ContactProps({ columns:any, data:any }) {
  const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow } =
    useTable({
      columns,
      data,
    });

or you can either remove the check for the "any" type in the declaration. In the tsconfig.json file, you could change the line

"noImplicitAny": false
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