Export type `Options` from `crawlWithOptions(dir, Options)`
vjpr opened this issue · 1 comments
vjpr commented
I like to use options like:
import {fdir, Options} from 'fdir'
const opts: Options = {
includeBasePath: true,
exclude: p => {
return p.indexOf('node_modules') > -1
},
filters: [p => p.endsWith('package.json')],
}
const files = new fdir().crawlWithOptions(dir, opts).sync()
return files
TS2459: Module '"fdir"' declares 'Options' locally, but it is not exported.
Also, thoughts on runtime validation for this? With zod
or something.
thecodrr commented
Fixed in v5.2.0