File size: 212 Bytes
4e23b01
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { z } from 'zod';

export const errorMessageSchema = z.object({
  type: z.literal('error'),
  code: z.number().int(),
  msg: z.string(),
});

export type ErrorMessage = z.infer<typeof errorMessageSchema>;