jaydenseric / extract-files

A function to recursively extract files and their object paths within a value, replacing them with null in a deep clone without mutating the original value. FileList instances are treated as File instance arrays. Files are typically File and Blob instances.
https://npm.im/extract-files
MIT License
56 stars 23 forks source link

Typescript type defs #12

Closed kennetpostigo closed 4 years ago

kennetpostigo commented 4 years ago

Hey there!

Been using this project recently (love it), but I wanted to ask if there is any chance there might type definitions for this library?

I couldn't find any in DefinitelyTyped, so not sure if maybe someone from the community might see this that maybe rolled their own or if maybe you had this in the works.

jaydenseric commented 4 years ago

Sorry to leave you hanging, the notification slipped through the cracks!

Thanks for the kind words man :)

I don't use TypeScript myself so I'm not sure where the best place is to get the types, although it's surprising none are on DefinitelyTyped yet. Maybe you could put them up?

or if maybe you had this in the works

No, there are no plans to add types beyond JSDoc for documentation purposes in this repo.

jaydenseric commented 2 years ago

Duplicate of https://github.com/jaydenseric/extract-files/issues/7 , which has been reopened.