Export ErrorWIthStack type

This commit is contained in:
Matt Aitken
2023-06-09 10:10:35 +01:00
parent 047c4f4baa
commit 618bc927e9
+2
View File
@@ -7,3 +7,5 @@ export const ErrorWithMessage = z.object({
export const ErrorWithStackSchema = ErrorWithMessage.extend({
stack: z.string().optional(),
});
export type ErrorWithStack = z.infer<typeof ErrorWithStackSchema>;