node-require-directory
node-require-directory copied to clipboard
TypeScript definitions for project
There are no definitions for TS users for this project anywhere - I think they'll provide better developing experience.
If needed I can add JSDocs to this definitions too.
I've added generics, because in most cases when we're requiring a folder it will have modules that have same interface. But if it's not a case, you still have an option to treat them as any
type.
Sorry, that I've missed include
and exclude
options initially - already added.
JsDoc annotation also included.