(_defaultValue: T)
| 480 | |
| 481 | // Helper function to create a type validator |
| 482 | function 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 |
| 493 | const weightedSchema = { |