| 412 | } |
| 413 | |
| 414 | class 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 | |
| 436 | class FileImpl extends PartBase implements File { |
| 437 | readonly _tag = "File" |
nothing calls this directly
no outgoing calls
no test coverage detected