pqina / filepond-plugin-image-preview

🖼 Show a preview for images dropped on FilePond
https://pqina.nl/filepond
MIT License
46 stars 26 forks source link

Fix implicit any error for `imagePreviewMarkupFilter` #36

Closed sbusch closed 4 years ago

sbusch commented 4 years ago

In some (our) codebases implicit any is disallowed (noImplicitAny), resulting in error

TypeScript error in /Users/myself/Devel/aproject/node_modules/filepond-plugin-image-preview/types/index.d.ts(32,37):
Parameter 'markupItem' implicitly has an 'any' type.  TS7006

This change fixes that. I tried to understand and define the exact shape of markupItem but eventually I chose an explicit any as a safe fix..