Skip to content

Do not report use of import or export errors for ambient contexts #9829

@mhegazy

Description

@mhegazy
// a.d.ts

export = a; //  error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
declare var a: number;

tsc a.d.ts --m none

We should not report errors in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions