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

Function makeType

packages/graph/src/test/date-temporal.test.ts:21–31  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected