Closed ryanwe closed 7 years ago
Thank you! 🙏
What about adding an index.d.ts
file to the root directory of the repo so that it is possible to import * as requireDir from 'require-dir'
?
@brandonros Haven't seen that done before, don't think that is necessary
It is. Try to import * as requireDir from 'require-dir'
from any TypeScript project. It will throw an error about a lacking module declaration. You can either add it to the repo like https://github.com/axios/axios/blob/master/index.d.ts or create @types/require-dir (like https://www.npmjs.com/package/@types/express)
@brandonros Yep typings I understand - I would rather go that route. I don't use typescript, but if somebody else wants to do them it should be a pretty simple API to model.
Explicitly ignore any type declaration files. While not explicitly a problem, this causes issues when running TypeScript via
ts-node
. See https://github.com/TypeStrong/ts-node/pull/207 for more details.