(file: File, allowedTypes: readonly string[])
| 140 | file: File, |
| 141 | options: { |
| 142 | allowedTypes: readonly string[]; |
| 143 | maxOriginalFileSizeBytes: number; |
| 144 | maxFileSizeBytes: number; |
| 145 | resizeImages?: ImageResizeOptions; |
| 146 | } |
| 147 | ): Promise<File> { |
| 148 | const typeError = validateImageFileType(file, options.allowedTypes); |
| 149 | if (typeError) { |
| 150 | throw new Error(typeError); |
no test coverage detected