Closed
Description
error message when run tsc
error TS2450: Left-hand side of assignment expression cannot be a constant or a read-only property.
a.ts
export let value = 1;
b.ts
import * as a from "./a";
function load() {
a.value = 2;
}
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs"
}
}
environment
>tsc -v
Version 1.9.0-dev.20160129