| 414 | } |
| 415 | |
| 416 | class 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 | |
| 438 | class FileImpl extends PartBase implements File { |
| 439 | readonly _tag = "File" |
nothing calls this directly
no outgoing calls
no test coverage detected