Skip to content

Commit

Permalink
ignore this error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Feb 2, 2023
1 parent 6afd419 commit f09aaa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map-form-to-pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default (
): Record<string, string> => {
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
Expand Down

0 comments on commit f09aaa5

Please sign in to comment.