mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00

* Fix formattedText implementation for iOS Fix typeof undefined checks Add slow tests message Improve tests speed * fix tslint reduce transitions duration in test * waitUntilReady will throw if timeout fix tests that needs to wait without throwing improve test speed
12 lines
367 B
TypeScript
12 lines
367 B
TypeScript
export var checkKey = function(key: string) : void {
|
|
if (typeof key !== "string") {
|
|
throw new Error("key: '" + key + "' must be a string");
|
|
}
|
|
}
|
|
|
|
export var ensureValidValue = function (value: any, valueType: string): void {
|
|
if (typeof value !== valueType) {
|
|
throw new Error("value: '" + value + "' must be a " + valueType);
|
|
}
|
|
}
|