globby
globby copied to clipboard
type declarations do not account for fs.Stats[] return type
fast-glob supports { stats: true }, which yields fs.Stats objects as opposed to strings. it looks like index.d.ts does not account for this?
Type 'string[]' is not assignable to type 'Stats[]'. Type 'string' is not assignable to type 'Stats'.
Probably just an oversight. PR welcome to fix this.
@starpit I had a go at fixing this in #173, let me know if you see any issues. I am new to to typescript.