zod-server-actions
Version:
Simple utility library to create server actions in Next.js
6 lines (5 loc) • 347 B
TypeScript
import { ResponseError } from ".";
export declare function isResponseError(res: unknown): res is ResponseError;
export declare function isRequestQuery(method: string): method is "GET";
export declare function isRequestMutation(method: string): method is "POST";
export declare function isRequestFormData(type: string | null): boolean | "" | null;