Closed vjpr closed 2 years ago
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.
zod
Fixed in v5.2.0
I like to use options like:
Also, thoughts on runtime validation for this? With
zod
or something.