mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 23:45:02 +00:00
Updated docs iin comment
This commit is contained in:
parent
f6e67e04da
commit
b2fdb7ec15
@ -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)
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user