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

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

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