node-require-directory icon indicating copy to clipboard operation
node-require-directory copied to clipboard

TypeScript definitions for project

Open Igmat opened this issue 7 years ago • 2 comments

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.

Igmat avatar Aug 14 '17 09:08 Igmat

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.

Igmat avatar Aug 14 '17 09:08 Igmat

Sorry, that I've missed include and exclude options initially - already added.

JsDoc annotation also included.

Igmat avatar Aug 14 '17 10:08 Igmat