mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-13 23:01:00 +00:00
refactor(frontend): remove unused response envelope schema (#6204)
Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
@@ -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>>>;
|
||||
Reference in New Issue
Block a user