Skip to main content

How the Decorator Works Internally

Rebound wraps the method in a higher-order function.

It preserves:

  • Parameter types
  • Return type
  • Async behavior
  • Class context (this)

Rebound injects retry control around your existing logic without modifying the method itself.

The final wrapped method remains strongly typed thanks to Rebound’s TypeScript-first design.