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

Function makeType

packages/graph/src/test/duration-temporal.test.ts:27–37  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected