Skip to content

no type error when using a default import #149

@DetachHead

Description

@DetachHead
import tsutils from 'tsutils' // no typescript error
tsutils.isTypeAliasDeclaration

at runtime:

tsutils_1.default.isTypeAliasDeclaration;
                  ^

TypeError: Cannot read properties of undefined (reading 'isTypeAliasDeclaration')

this seems to only be an issue with the compiled *.d.ts files, it doesn't happen with the source code. i'm not really sure how this project is built because npm run compile doesn't seem to output anything so it's difficult for me to minify the issue

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