Skip to content

Typecheck fails #3

@lpsinger

Description

@lpsinger

Running tsc on a project that imports addresscompiler fails with the following error messages:

$ npm run typecheck

> typecheck
> tsc

node_modules/addresscompiler/src/addresscompiler.d.ts:7:4 - error TS1036: Statements are not allowed in ambient contexts.

7   };
     ~

node_modules/addresscompiler/src/addresscompiler.d.ts:14:3 - error TS1038: A 'declare' modifier cannot be used in an already ambient context.

14   declare const AddressCompiler: {
     ~~~~~~~

node_modules/addresscompiler/src/addresscompiler.d.ts:18:3 - error TS2309: An export assignment cannot be used in a module with other exported elements.

18   export = AddressCompiler;
     ~~~~~~~~~~~~~~~~~~~~~~~~~


Found 3 errors in the same file, starting at: node_modules/addresscompiler/src/addresscompiler.d.ts:7

Minimal reproducing example here: https://github.com/lpsinger/addresscompiler-bug-report

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions