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

210
Vistas
Azure Functions (Typescript) - How can I run a setup/bootstrapper function

I have several functions in my function app. Is there a way to have a setup/bootstrapper function run before all functions? This would be something that maybe sets up some global variables, logging, etc. I'm it would just be an index.ts file that gets run before each function.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Currently I'm doing this using a Higher Order function:

export function withSetup(fn) {
    return (...args) => {
        // Do some setup stuff here
        return fn(...args);
    };
}

This works but if you forget to wrap the function it can cause strange issues. I'm curious if there are other answers.

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