extract-files icon indicating copy to clipboard operation
extract-files copied to clipboard

Document required TypeScript libs

Open devkral opened this issue 2 years ago • 1 comments

Version 13.0.0

I get in the new version the error:

<sourcefolder>/node_modules/apollo-upload-client/node_modules/extract-files/extractFiles.mjs(141,30)
      TS2488: Type 'any[] | FileList' must have a '[Symbol.iterator]()' method that returns an iterator.

It seems like a bug in your library in combination with typescript.

I use the library via apollo-upload-client

devkral avatar Nov 05 '23 11:11 devkral

The problem was the missing inclusion of "DOM.Iterable" in the lib part of tsconfig.json. Please document this in requirements

devkral avatar Nov 10 '23 14:11 devkral