From f09aaa5651a481f39bb9a62106b8a54fd8fc24a5 Mon Sep 17 00:00:00 2001 From: Sparticuz Date: Thu, 2 Feb 2023 14:59:28 -0500 Subject: [PATCH] ignore this error --- src/map-form-to-pdf.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map-form-to-pdf.ts b/src/map-form-to-pdf.ts index 982365e..a6d7549 100644 --- a/src/map-form-to-pdf.ts +++ b/src/map-form-to-pdf.ts @@ -45,7 +45,8 @@ export default ( ): Record => { return mapKeys( convertFieldJsonToFDF(formFields), - (_value: unknown, key: string | number) => { + // @ts-expect-error I'm not sure why this is not type safe + (value: unknown, key: string | number) => { if (Object.prototype.hasOwnProperty.call(convMap, key)) { // This is an acceptable risk. We are assuming the developer knows the PDF being used. // eslint-disable-next-line security/detect-object-injection