updated user preferences and application

This commit is contained in:
Stanimir Karoserov
2014-05-12 16:52:08 +03:00
parent d1652ad831
commit da9966a9c9
7 changed files with 283 additions and 185 deletions

View File

@ -0,0 +1,12 @@

export var checkKey = function(key: string) : void {
if ("string" !== typeof key) {
throw new Error("key: '" + key + "' must be a string");
}
}
export var ensureValidValue = function (value: any, valueType: string): void {
if (valueType !== typeof value) {
throw new Error("value: '" + value + "' must be a " + valueType);
}
}