Skip to content

Commit 09cb566

Browse files
committed
feat
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 30f1915 commit 09cb566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/factories/fromPath.node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2323

2424
import {readFileSync} from "fs";
2525

26-
import {getMimeForTextFile} from "../_helpers/mime";
26+
import {getMimeForTextFile, MimeType} from "../_helpers/mime";
2727
import {AttachmentEncoding} from "../enums/attachmentEncoding";
2828
import {Attachment} from "../models/attachment";
2929

@@ -34,7 +34,7 @@ import {Attachment} from "../models/attachment";
3434
*/
3535
export 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'),

0 commit comments

Comments
 (0)