MCPcopy Index your code
hub / github.com/Effect-TS/effect / FieldImpl

Class FieldImpl

packages/platform/src/Multipart.ts:414–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414class FieldImpl extends PartBase implements Field {
415 readonly _tag = "Field"
416
417 constructor(
418 readonly key: string,
419 readonly contentType: string,
420 readonly value: string
421 ) {
422 super()
423 }
424
425 toJSON(): unknown {
426 return {
427 _id: "@effect/platform/Multipart/Part",
428 _tag: "Field",
429 key: this.key,
430 contentType: this.contentType,
431 value: this.value
432 }
433 }
434}
435
436class FileImpl extends PartBase implements File {
437 readonly _tag = "File"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected