fast-glob icon indicating copy to clipboard operation
fast-glob copied to clipboard

typescript types are wrong when attempting to use named exports

Open SuperchupuDev opened this issue 3 months ago • 0 comments

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

SuperchupuDev avatar Sep 09 '25 08:09 SuperchupuDev