MCPcopy
hub / github.com/Effect-TS/effect / getOrderId

Function getOrderId

packages/effect/test/Schema/Schema/annotations.test.ts:97–101  ·  view source on GitHub ↗
({ actual }: ParseResult.ParseIssue)

Source from the content-addressed store, hash-verified

95
96 it("parseIssueTitle", async () => {
97 const getOrderId = ({ actual }: ParseResult.ParseIssue) => {
98 if (S.is(S.Struct({ id: S.Number }))(actual)) {
99 return `Order with ID ${actual.id}`
100 }
101 }
102
103 const Order = S.Struct({
104 id: S.Number,

Callers

nothing calls this directly

Calls 1

isMethod · 0.65

Tested by

no test coverage detected