mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
renamed folders with lower cases and renamed user preferences to local settings
This commit is contained in:
12
localsettings/local_settings_common.ts
Normal file
12
localsettings/local_settings_common.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user