refactor(frontend): remove unused response envelope schema (#6204)

Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
n0ctal
2026-08-13 15:46:00 +05:00
committed by GitHub
parent 286a93474d
commit 0a30a03cb7
-10
View File
@@ -1,10 +0,0 @@
import { z } from 'zod';
export const msgSchema = <T extends z.ZodType>(obj: T) =>
z.object({
success: z.boolean(),
msg: z.string().default(''),
obj: obj.nullable(),
});
export type MsgOf<S extends z.ZodType> = z.infer<ReturnType<typeof msgSchema<S>>>;