MCPcopy Index your code
hub / github.com/OpenPipe/OpenPipe / typedNode

Function typedNode

app/src/server/utils/nodes/node.types.ts:109–118  ·  view source on GitHub ↗
(
  input: U & { type: T },
)

Source from the content-addressed store, hash-verified

107>["config"];
108
109export const typedNode = <
110 T extends NodeType,
111 U extends { config: Prisma.JsonValue | object },
112 C extends InferNodeConfig<T>,
113>(
114 input: U & { type: T },
115): Omit<U, "config"> & { config: C } => ({
116 ...input,
117 config: nodeSchema.parse(input).config as C,
118});

Callers 6

monitors.router.tsFile · 0.90
archives.router.tsFile · 0.90
datasets.router.tsFile · 0.90
nodes.router.tsFile · 0.90
fetchNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected