MCPcopy Create free account
hub / github.com/codemix/graph / makePassThroughType

Function makePassThroughType

packages/graph/src/test/standardSchema.test.ts:110–118  ·  view source on GitHub ↗

* Creates a pass-through schema (no transformation).

()

Source from the content-addressed store, hash-verified

108 * Creates a pass-through schema (no transformation).
109 */
110function makePassThroughType<T>(): StandardSchemaV1<T> {
111 return {
112 "~standard": {
113 version: 1,
114 vendor: "test",
115 validate: (value) => ({ value: value as T }),
116 },
117 };
118}
119
120// Schema with transforming types
121const transformingSchema = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected