soldair / node-walkdir

Walk a directory tree emitting events based on the contents. API compatable with node-findit. Walk a tree of any depth. Fast! Handles permission errors. Stoppable. windows support. Pull requests are awesome. watchers are appreciated.
MIT License
131 stars 22 forks source link

Add typescript types #35

Closed JustinBeckwith closed 5 years ago

JustinBeckwith commented 6 years ago

It would be rad to have TypeScript types built into this package!

soldair commented 5 years ago

i agree

soldair commented 5 years ago

this was waaaaayy harder than i expected

https://github.com/soldair/node-walkdir/blob/master/walkdir.d.ts and a test https://github.com/soldair/node-walkdir/blob/master/test.ts

JustinBeckwith commented 5 years ago

Thank you so much @soldair!