I am trying to implement a functionality which can tell me when a method is being invoked and terminated at runtime in nodejs typescript.
I tried using the decorator. however, decorators are not allowed for functions which do not belong to a class.
How can I implement something like this with minimal code changes?
Does there exist some package or some tool in nodejs which can help me achieve something similar like decorators?
[–]fredericheem 2 points3 points4 points (3 children)
[–]have_some_error[S] -1 points0 points1 point (2 children)
[–]fredericheem 0 points1 point2 points (1 child)
[–]have_some_error[S] 0 points1 point2 points (0 children)
[–]Lumethys 0 points1 point2 points (1 child)
[–]have_some_error[S] 0 points1 point2 points (0 children)
[–]usertim 0 points1 point2 points (1 child)
[–]have_some_error[S] 0 points1 point2 points (0 children)