File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2323
2424import { readFileSync } from "fs" ;
2525
26- import { getMimeForTextFile } from "../_helpers/mime" ;
26+ import { getMimeForTextFile , MimeType } from "../_helpers/mime" ;
2727import { AttachmentEncoding } from "../enums/attachmentEncoding" ;
2828import { Attachment } from "../models/attachment" ;
2929
@@ -34,7 +34,7 @@ import {Attachment} from "../models/attachment";
3434 */
3535export class AttachmentFactory {
3636
37- public fromFile ( file : string , contentType : string ) : Attachment {
37+ public fromFile ( file : string , contentType : MimeType ) : Attachment {
3838 return new Attachment (
3939 // may throw if `readFileSync()` fails
4040 readFileSync ( file ) . toString ( 'base64' ) ,
You can’t perform that action at this time.
0 commit comments