tech: more tslint rules

This commit is contained in:
Torkel Ödegaard
2017-09-21 17:23:31 +02:00
parent b8d9722b4f
commit 491fa6cad8
16 changed files with 24 additions and 904 deletions

View File

@@ -64,7 +64,7 @@ export class QueryVariable implements Variable {
return this.model;
}
setValue(option){
setValue(option) {
return this.variableSrv.setOptionAsCurrent(this, option);
}

View File

@@ -82,7 +82,7 @@ export class VariableSrv {
createVariableFromModel(model) {
var ctor = variableTypes[model.type].ctor;
if (!ctor) {
throw "Unable to find variable constructor for " + model.type;
throw {message: "Unable to find variable constructor for " + model.type};
}
var variable = this.$injector.instantiate(ctor, {model: model});