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

Function makeType

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

Source from the content-addressed store, hash-verified

17
18// Helper to create type
19function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
20 return {
21 "~standard": {
22 version: 1,
23 vendor: "test",
24 validate: (value) => ({ value: value as T }),
25 },
26 };
27}
28
29// Simple schema for testing
30const testSchema = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected