thecodrr / fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
https://thecodrr.github.io/fdir/
MIT License
1.51k stars 58 forks source link

Typescript def seems to miss exports #29

Closed razzeee closed 4 years ago

razzeee commented 4 years ago

As sync now returns Output, we need a way to tell the compiler which output it is. One thing we could do is just cast x = x as PathsOutput; but that needs the types combined to create Output to be exported in the .d.ts file.

thecodrr commented 4 years ago

Yes, we can export the Output types.

I am not a TS Ninja but there might be some better way to automatically resolve this based on what flags are on. Open to any suggestions.