Renaming my javascript files in .ts files and compiling them seems to be not as easy as assumed. I get a lot of type errors, which disturbs me since I expected type script to be a superset of javascript.
Simple example:
var initial = { alive: [], destroyed: [] };
if (modificationHelper.aliveCompare) {
initial.aliveValues = [];
}
Property 'aliveValues' does not exist on type '{ alive: any[]; destroyed: any[]; }
What is the cause, what can I do?