fast-glob
fast-glob copied to clipboard
typescript types are wrong when attempting to use named exports
Hi! It looks like the typescript types have a small issue according to https://arethetypeswrong.github.io/?p=fast-glob
I found out about this when trying to do import { glob } from 'fast-glob', which threw an error when running node but typescript didn't give any error
arethetypeswrong has some docs that explain how to fix this issue by making the exports analyzable by cjs-module-lexer: https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NamedExports.md