( input: T, )
| 40 | .passthrough(); |
| 41 | |
| 42 | export const typedDatasetEntryOutput = <T extends Pick<DatasetEntryOutput, "output">>( |
| 43 | input: T, |
| 44 | ): Omit<T, "output"> & |
| 45 | // @ts-expect-error zod doesn't type `passthrough()` correctly. |
| 46 | z.infer<typeof datasetEntryOutput> => datasetEntryOutput.parse(input); |
| 47 | |
| 48 | const nodeEntry = z.intersection(datasetEntryInput.passthrough(), datasetEntryOutput.passthrough()); |
| 49 |
no outgoing calls
no test coverage detected