Updated docs iin comment

This commit is contained in:
Felix Kaspar 2023-12-28 02:26:25 +01:00
parent f6e67e04da
commit b2fdb7ec15

View File

@ -22,6 +22,6 @@ export const JoiPDFFileSchema = Joi.custom((value: Express.Multer.File[] /* <- a
} }
}, "pdffile validation"); }, "pdffile validation");
function isPdfFileArray(value: any[]): value is PdfFile[] { // "is" is a ts-typeguard - https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards function isPdfFileArray(value: any[]): value is PdfFile[] { // "is" is a ts-typeguard - https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates
return value.every((e) => e instanceof PdfFile) return value.every((e) => e instanceof PdfFile)
} }