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

Function makeType

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected