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

Function makeAsyncType

packages/graph/src/test/standardSchema.test.ts:95–105  ·  view source on GitHub ↗

* Creates a schema that returns a Promise (async validation - not supported).

()

Source from the content-addressed store, hash-verified

93 * Creates a schema that returns a Promise (async validation - not supported).
94 */
95function makeAsyncType(): StandardSchemaV1<unknown> {
96 return {
97 "~standard": {
98 version: 1,
99 vendor: "test",
100 validate: () => {
101 return Promise.resolve({ value: "async result" });
102 },
103 },
104 };
105}
106
107/**
108 * Creates a pass-through schema (no transformation).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected