Skip to content

typescript types are wrong when attempting to use named exports #491

@SuperchupuDev

Description

@SuperchupuDev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions