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

Function makeType

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

Source from the content-addressed store, hash-verified

10
11// Helper to create type
12function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
13 return {
14 "~standard": {
15 version: 1,
16 vendor: "test",
17 validate: (value) => ({ value: value as T }),
18 },
19 };
20}
21
22// Simple schema for testing
23const testSchema = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected