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

Function makeType

packages/graph/src/test/newFeatures.test.ts:12–22  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

10import type { Query, Pattern } from "../AST.js";
11
12function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
13 return {
14 "~standard": {
15 version: 1,
16 vendor: "codemix",
17 validate: (value) => {
18 return { value: value as T };
19 },
20 },
21 };
22}
23
24function executeQuery(
25 graph: Graph<GraphSchema>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected