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

303
Views
¿Cómo transformar el código TypeScript a continuación en código JavaScript?
function PrivateRoute({ children } : any ) { const accessToken = false; const loading = false; const navigate = useNavigate(); const location = useLocation(); const fromLocation = (location.state as any)?.from; const previousLocation = location.state ? fromLocation : { pathname: '/login' };

¿Cómo transformar dos líneas de código con la palabra clave 'cualquiera' en código javascript?

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

0

Elimina las tipificaciones. El ':cualquiera'

about 4 years ago · Juan Pablo Isaza Report

0

Puede eliminar ' : any ' y ' as any ' ya que JavaScript no tiene sugerencias de tipos de datos.

about 4 years ago · Juan Pablo Isaza Report

0

Prueba esto

 function PrivateRoute(_a) { var _b; var children = _a.children; var accessToken = false; var loading = false; var navigate = useNavigate(); var location = useLocation(); var fromLocation = (_b = location.state) === null || _b === void 0 ? void 0 : _b.from; var previousLocation = location.state ? fromLocation : { pathname: '/login' }; }
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!