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

87
Views
How to communicate between typescript decorators

To learn more about decorators I would like to create a decorator which caches the output of a function, something like this

class BarFoo {
    @Cahced()
    doComplexCalc(@CahcedParamIgnore() a, b, c) {

    }
}

DEMO

The @Cached decorator caches the response from doComplexCalc based on the values from a, b and c. As you can see in the example, I would also like to be able to ignore one or more method arguments. My question is, what would be the best way for the @CahcedParamIgnore decorator to inform the @Cached decorator about which arguments to ignore?

almost 4 years ago · Santiago Trujillo
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!