MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / typedDatasetEntryOutput

Function typedDatasetEntryOutput

app/src/types/dbColumns.types.ts:42–46  ·  view source on GitHub ↗
(
  input: T,
)

Source from the content-addressed store, hash-verified

40 .passthrough();
41
42export 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
48const nodeEntry = z.intersection(datasetEntryInput.passthrough(), datasetEntryOutput.passthrough());
49

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected