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: 3delay: 1000msbackoffFactor: 1
This means the method will automatically retry up to 3 total attempts.