A decorator is actually a operate that takes a functionality being an argument and returns a closure. The closure is a set of internal features and free variables. This appears to be comparable to this concern: Fake "Property won't exist on type 'by no means'" when modifying benefit inside callback https://smartworldeveloper.in/