zod-server-actions
Version:
Simple utility library to create server actions in Next.js
11 lines (10 loc) • 429 B
TypeScript
import { ActionHandler } from "./action-handler";
import { Config } from "./config";
export type RetriesConfig = {
maximumAttempts: number;
delay: number;
};
export declare class ActionHandlerFactory {
static createActionHandler<C extends object>(config: Omit<Config<C>, "setConfig">): ActionHandler<C>;
static createActionHandler<C extends object>(config?: Omit<Config<C>, "setConfig">): ActionHandler<never>;
}