MCPcopy Create free account
hub / github.com/Effect-TS/effect / convertPart

Function convertPart

packages/platform/node/src/NodeMultipart.ts:89–90  ·  view source on GitHub ↗
(part: MP.Part)

Source from the content-addressed store, hash-verified

87// -----------------------------------------------------------------------------
88
89const convertPart = (part: MP.Part): Multipart.Part =>
90 part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part)
91
92abstract class PartBase extends Inspectable.Class {
93 readonly [Multipart.TypeId]: typeof Multipart.TypeId

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected