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

377
Views
El espacio de nombres 'NodeJS' no tiene un miembro exportado 'Global'

Solía definir variables globales usando el siguiente código:

 interface CustomNodeJSGlobal extends NodeJS.Global { myGlobalVariable: unknown } export { CustomNodeJSGlobal }

En Node 14, pero cuando instalé @types/node (que actualmente se encuentra en la versión 16) me arroja un error Namespace 'NodeJS' has no exported member 'Global' . ¿Cómo puedo declarar variables globales en el Nodo 16 y superior?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Con Node.js >= 16, creo que el tipo NodeJS.Global ya no está disponible, pero puedes declararlo así:

 type NodeJSGlobal = typeof global;
over 4 years ago · Santiago Trujillo 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!