Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mhegazy opened this issue Jul 19, 2016 · 0 comments
Closed

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

mhegazy opened this issue Jul 19, 2016 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 19, 2016

// 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.

@mhegazy mhegazy added the Bug A bug in TypeScript label Jul 19, 2016
@mhegazy mhegazy added this to the TypeScript 2.0.1 milestone Jul 19, 2016
@yuit yuit added the Fixed A PR has been merged for this issue label Jul 28, 2016
@yuit yuit closed this as completed Jul 28, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants