Updated docs iin comment
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user