feat(visionos): ui-mobile-base supporting xros plus improvements to window handling (#10478)

This commit is contained in:
Nathan Walker
2024-04-05 17:07:16 -07:00
committed by GitHub
parent 9ca490250e
commit 01d537bf15
242 changed files with 8658 additions and 2099 deletions

View File

@ -1,11 +1,15 @@
export function checkKey(key: string): void {
export function checkKey(key: string): boolean {
if (typeof key !== 'string') {
throw new Error("key: '" + key + "' must be a string");
console.error("key: '" + key + "' must be a string");
return false;
}
return true;
}
export function ensureValidValue(value: any, valueType: string): void {
export function ensureValidValue(value: any, valueType: string): boolean {
if (typeof value !== valueType) {
throw new Error("value: '" + value + "' must be a " + valueType);
console.error("value: '" + value + "' must be a " + valueType);
return false;
}
return true;
}