We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Broken in the last six days. The following was and is okay:
var foo = function(){} foo = function(){}
However as soon as you split the two into external modules i.e. mod1.ts
mod1.ts
export var foo = function(){}
mod2.ts
import mod1 = require('./mod1'); mod1.foo = function(){}; // Error : Invalid left hand side of assignment
The text was updated successfully, but these errors were encountered:
that is caused by #2476. foo in import {foo} from "mod" should be immutable, but i do not think ns.foo in import * as ns from "mod" should be.
import {foo} from "mod"
import * as ns from "mod"
Sorry, something went wrong.
I've checked ES6 spec - all bindings that are created for imported names are immutable so all cases below should be illegal:
import * as ns, {foo} from 'foo' import d from 'foo' ns.a = 1; foo = 1; d = 1;
Successfully merging a pull request may close this issue.
Broken in the last six days. The following was and is okay:
However as soon as you split the two into external modules
i.e.
mod1.ts
mod2.ts
The text was updated successfully, but these errors were encountered: