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

Function makeType

packages/graph/src/test/range-reverse.test.ts:22–32  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

20import { TraversalPath } from "../Traversals.js";
21
22function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
23 return {
24 "~standard": {
25 version: 1,
26 vendor: "codemix",
27 validate: (value) => {
28 return { value: value as T };
29 },
30 },
31 };
32}
33
34const schema = {
35 vertices: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected