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

Function makeType

packages/graph/src/test/stringPredicateTraversals.test.ts:8–18  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

6import { StandardSchemaV1 } from "@standard-schema/spec";
7
8function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
9 return {
10 "~standard": {
11 version: 1,
12 vendor: "codemix",
13 validate: (value) => {
14 return { value: value as T };
15 },
16 },
17 };
18}
19
20// Module-level setup
21const schema = {

Calls

no outgoing calls

Tested by

no test coverage detected