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

Function makeType

packages/graph/src/test/ShortestPath.test.ts:482–490  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

480
481// Helper function to create a type validator
482function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
483 return {
484 "~standard": {
485 version: 1,
486 vendor: "codemix",
487 validate: (value) => ({ value: value as T }),
488 },
489 };
490}
491
492// Schema with weighted edges for Dijkstra tests
493const weightedSchema = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected