import { z } from 'zod'; export const msgSchema = (obj: T) => z.object({ success: z.boolean(), msg: z.string().default(''), obj: obj.nullable(), }); export type MsgOf = z.infer>>;