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

Function makeType

packages/graph/src/test/duplicateRemoval.test.ts:10–20  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

8import type { Query, UnionQuery, MultiStatement } from "../AST.js";
9
10function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
11 return {
12 "~standard": {
13 version: 1,
14 vendor: "codemix",
15 validate: (value) => {
16 return { value: value as T };
17 },
18 },
19 };
20}
21
22const schema = {
23 vertices: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected