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

Function encode

packages/platform/src/MsgPack.ts:336–346  ·  view source on GitHub ↗
(toI, _, ast)

Source from the content-addressed store, hash-verified

334 })
335 },
336 encode(toI, _, ast) {
337 return ParseResult.try({
338 try: () => Msgpackr.encode(toI),
339 catch: (cause) =>
340 new ParseResult.Type(
341 ast,
342 toI,
343 Predicate.hasProperty(cause, "message") ? String(cause.message) : String(cause)
344 )
345 })
346 }
347 }
348 )

Callers 2

HttpBody.test.tsFile · 0.50
HttpApp.test.tsFile · 0.50

Calls 2

StringInterface · 0.85
encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…