( input: T, )
| 125 | .passthrough(); |
| 126 | |
| 127 | export const typedInvoice = <T extends Pick<Invoice, "description">>( |
| 128 | input: T, |
| 129 | ): Omit<T, "description"> & z.infer<typeof invoiceSchema> => |
| 130 | // @ts-expect-error zod doesn't type `passthrough()` correctly. |
| 131 | invoiceSchema.parse(input); |
no outgoing calls
no test coverage detected