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

Function makeType

packages/graph/src/test/orderByAndForeach.test.ts:13–23  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

11import { TraversalPath } from "../Traversals.js";
12
13function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
14 return {
15 "~standard": {
16 version: 1,
17 vendor: "codemix",
18 validate: (value) => {
19 return { value: value as T };
20 },
21 },
22 };
23}
24
25// Test schema
26const schema = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected