thecodrr / fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s

Home Page:https://thecodrr.github.io/fdir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript def seems to miss exports

razzeee opened this issue · comments

commented

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.

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.