(
resource: ResourceDescriptor & { type: FeishuSupportedResourceType },
filename: string,
)
| 438 | return filename; |
| 439 | } |
| 440 | return resource.type === "image" ? `image-${index + 1}.png` : `file-${index + 1}`; |
| 441 | } |
| 442 | |
| 443 | private resolveResourceMimeType( |
| 444 | resource: ResourceDescriptor & { type: FeishuSupportedResourceType }, |
| 445 | filename: string, |
| 446 | ): string | undefined { |
| 447 | return detectMimeType(filename) || (resource.type === "image" ? "image/png" : undefined); |
| 448 | } |
no test coverage detected