UNPKG

safe-actions-state

Version:

A lightweight, type-safe utility for Next.js server & client actions with built-in authentication and RBAC(role based access control) checks, Zod validation, auto retries if server action fails, and real-time toast feedback out of the box. Just write your

2 lines (1 loc) 113 B
export declare const withRetry: <T>(fn: () => Promise<T>, retries?: number, signal?: AbortSignal) => Promise<T>;