fix(shared-operations): resolve typescript compile errors

This commit is contained in:
sbplat
2023-12-27 19:33:32 -05:00
parent 762fa850f1
commit c9c03b206c
3 changed files with 17 additions and 10 deletions

View File

@@ -23,5 +23,5 @@ export const JoiPDFFileSchema = Joi.custom((value: Express.Multer.File | Express
}, "pdffile validation");
function isPdfFileArray(value: any): value is PdfFile[] {
return value.every((e) => e instanceof PdfFile)
}
return value.every((e: PdfFile) => e instanceof PdfFile)
}