@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
14 lines (13 loc) • 342 B
TypeScript
/**
* @module BackoffPolicy
*/
import { type ITimeSpan } from "../../time-span/contracts/_module.js";
import { type Invokable } from "../../utilities/_module.js";
/**
* IMPORT_PATH: `"@daiso-tech/core/backoff-policies"`
* @group Contracts
*/
export type BackoffPolicy = Invokable<[
attempt: number,
error: unknown
], ITimeSpan>;