I started using tslint on my TypeScript project. When i reviewed the linted source, i noticed that sometimes keys were removed from objects.
I made a production build (locally) and no errors were shown. How is this possible? I could not find something about this behaviour on the net.
Before:
this.streamsDataModelDistance = new SimpleStreamsDataModel({
polylineValueModels: polylineValueModels,
fields: this.settingsModel.fields,
commuters: distanceCommuters
});
After:
this.streamsDataModelDistance = new SimpleStreamsDataModel({
polylineValueModels,
fields: this.settingsModel.fields,
commuters: distanceCommuters
});
Notice the missing key "polylineValueModels".
How does this even compile to JavaScript without errors? I'm hesitant to check this in into the trunk.