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

161
Views
show Definition or Type definition for built in js methods with ts

I don't know if I had this issue with my other projects I am using Typescript and react from CRA for an electron application. It doesn't cause me any issues. But I would love to get a definition on methods like .splice() or .toLowerCase() when I hover over them so I don't have to take a quick look on w3 or mdn for what parameters to pass. I don't have a problem getting the definition or type definition of functions I have written. Or from Packages I use. I have intellisense and js and ts language support extensions installed.

  • After looking into it further This problem for me has to do with Typescript seeing a value or prop as any. so the method any.splice() has no definition while [].splice() does.

  • I have types declared for this object called data and one of its props is email_addresses which has a type for it. but ts assumes it is any? -- it is and object in an object

type ConfigPageType = {
 email_addresses: EmailAddressesType[]
}

why is it any? I get data from an axios response and it properly says data is ConfigPageType but email_addresses is any? Please answer why email_addresses is any And if there is a way to get the definition of val.splice() or val.toLowerCase() when val is any?

about 4 years ago · Juan Pablo Isaza
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!