( input: T, )
| 28 | .passthrough(); |
| 29 | |
| 30 | export const typedDatasetEntryInput = <T extends Pick<DatasetEntryInput, "messages">>( |
| 31 | input: T, |
| 32 | ): Omit<T, "messages"> & |
| 33 | // @ts-expect-error zod doesn't type `passthrough()` correctly. |
| 34 | z.infer<typeof datasetEntryInput> => datasetEntryInput.parse(input); |
| 35 | |
| 36 | const datasetEntryOutput = z |
| 37 | .object({ |
no outgoing calls
no test coverage detected