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

Class FieldImpl

packages/platform/src/Multipart.ts:416–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected