Skip to main content

Installation

npm install rebound-ts
# or
yarn add rebound-ts

Basic Usage

import { Rebound } from "rebound-ts";

class ApiService {
@Rebound()
async loadData() {
return fetch("https://api.example.com/data");
}
}

Default configuration

  • attemps: 3
  • delay: 1000ms
  • backoffFactor: 1

This means the method will automatically retry up to 3 total attempts.