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

Function makeType

packages/graph/src/test/testHelpers.ts:17–27  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

15 * The validator simply returns the value as-is without actual validation.
16 */
17export function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
18 return {
19 "~standard": {
20 version: 1,
21 vendor: "codemix",
22 validate: (value) => {
23 return { value: value as T };
24 },
25 },
26 };
27}
28
29/**
30 * Strips ANSI escape codes from a string.

Calls

no outgoing calls

Tested by 1

createTestGraphFunction · 0.56