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

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

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