Ver código fonte

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

Co-authored-by: n0ctal <[email protected]>
n0ctal 9 horas atrás
pai
commit
0a30a03cb7
1 arquivos alterados com 0 adições e 10 exclusões
  1. 0 10
      frontend/src/schemas/_envelope.ts

+ 0 - 10
frontend/src/schemas/_envelope.ts

@@ -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>>>;