UNPKG

zod-server-actions

Version:

Simple utility library to create server actions in Next.js

11 lines (10 loc) 196 B
export const makeResponseSuccess = (data) => ({ data, error: null, success: true, }); export const makeResponseError = (error) => ({ error, data: null, success: false, });